]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: phy: micrel: use genphy_read_status for KSZ9131
authorAtsushi Nemoto <atsushi.nemoto@sord.co.jp>
Fri, 10 Apr 2020 03:16:16 +0000 (12:16 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2020 23:25:30 +0000 (16:25 -0700)
KSZ9131 will not work with some switches due to workaround for KSZ9031
introduced in commit 14579c6b300cdbf8798d45de1c798e3055c23a44
("net/phy: micrel: Add workaround for bad autoneg").
Use genphy_read_status instead of dedicated ksz9031_read_status.

Fixes: b5d679fd8b16 ("net: phy: micrel: add Microchip KSZ9131 initial driver")
Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c

index 05d20343b8161c722afb2d0f33bda1616fcdb32e..3a4d83fa52dca3c31245428dc0cba5171a641838 100644 (file)
@@ -1204,7 +1204,7 @@ static struct phy_driver ksphy_driver[] = {
        .driver_data    = &ksz9021_type,
        .probe          = kszphy_probe,
        .config_init    = ksz9131_config_init,
-       .read_status    = ksz9031_read_status,
+       .read_status    = genphy_read_status,
        .ack_interrupt  = kszphy_ack_interrupt,
        .config_intr    = kszphy_config_intr,
        .get_sset_count = kszphy_get_sset_count,