]> www.infradead.org Git - users/hch/xfs.git/commit
net: phy: Micrel KSZ8061: fix errata solution not taking effect problem
authorTristram Ha <tristram.ha@microchip.com>
Fri, 31 May 2024 01:38:01 +0000 (18:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2024 09:03:15 +0000 (10:03 +0100)
commit0a8d3f2e3e8d8aea8af017e14227b91d5989b696
treea2eea2c820bb28eccef8596221b35b5c39b4600e
parentfb0aa0781a5f457e3864da68af52c3b1f4f7fd8f
net: phy: Micrel KSZ8061: fix errata solution not taking effect problem

KSZ8061 needs to write to a MMD register at driver initialization to fix
an errata.  This worked in 5.0 kernel but not in newer kernels.  The
issue is the main phylib code no longer resets PHY at the very beginning.
Calling phy resuming code later will reset the chip if it is already
powered down at the beginning.  This wipes out the MMD register write.
Solution is to implement a phy resume function for KSZ8061 to take care
of this problem.

Fixes: 232ba3a51cc2 ("net: phy: Micrel KSZ8061: link failure after cable connect")
Signed-off-by: Tristram Ha <tristram.ha@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c