net: phy: mxl-gpy: cache PHY firmware version
authorMichael Walle <michael@walle.cc>
Tue, 12 Jul 2022 13:15:52 +0000 (15:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 13:18:39 +0000 (14:18 +0100)
commit1db8587078502d0bc7a74338867a318deb8753ec
tree0e7d77bcfcfbf64623674504510c3c599ef0f1e2
parentfc3dd0367e610ae20ebbce6c38c7b86c3a2cc07f
net: phy: mxl-gpy: cache PHY firmware version

Cache the firmware version during probe. There is no need to read the
firmware version on every autonegotiation.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mxl-gpy.c