]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: micrel: Fix link detection on ksz87xx switch"
authorBen Hutchings <ben.hutchings@mind.be>
Sat, 7 Aug 2021 00:06:18 +0000 (02:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Aug 2021 11:03:24 +0000 (12:03 +0100)
commita686008f03a1538c9676ceb63c88f32fa2c2af2e
treefa998792bd937fa4d058f5696fb4cb14760133b6
parentcc46b3154866b3b2d43b0501aebea23de7f78807
net: phy: micrel: Fix link detection on ksz87xx switch"

Commit c4f576839861 "net: phy: micrel: Fix detection of ksz87xx
switch" broke link detection on the external ports of the KSZ8795.

The previously unused phy_driver structure for these devices specifies
config_aneg and read_status functions that appear to be designed for a
fixed link and do not work with the embedded PHYs in the KSZ8795.

Delete the use of these functions in favour of the generic PHY
implementations which were used previously.

Fixes: c4f576839861 ("net: phy: micrel: Fix detection of ksz87xx switch")
Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c