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)
commit68dac3eb50be32957ae6e1e6da9281a3b7c6658b
tree444a7163a09ffcd8d4fef13e3d4d8af66cde92a4
parent82f35276c64ff720de11fba31fd6369b45647a2e
net: phy: micrel: use genphy_read_status for KSZ9131

KSZ9131 will not work with some switches due to workaround for KSZ9031
introduced in commit d2fd719bcb0e83cb39cfee22ee800f98a56eceb3
("net/phy: micrel: Add workaround for bad autoneg").
Use genphy_read_status instead of dedicated ksz9031_read_status.

Fixes: bff5b4b37372 ("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