]> 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)
commit2d4d056aeb2c0dbf1f0bbcba5760e92a2c70dfb4
tree444a7163a09ffcd8d4fef13e3d4d8af66cde92a4
parentd43bb4bcf1c76146080788fa90789b6d17bb9216
net: phy: micrel: use genphy_read_status for KSZ9131

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