]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c7bdb7fd021a314547cba0139627569b9af39e1
tree444a7163a09ffcd8d4fef13e3d4d8af66cde92a4
parentfa7ae7b5d50aa5a19a5a56339cba117f4db7c17d
net: phy: micrel: use genphy_read_status for KSZ9131

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

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