net: phy: realtek: Introduce quirk to mark RXC not stoppable
authorCarlo Caione <ccaione@baylibre.com>
Thu, 24 Jan 2019 08:54:37 +0000 (08:54 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 7 May 2019 19:51:55 +0000 (14:51 -0500)
commitd47cfdbd315297af73746462599b0c81dac6054a
tree09bfe97a535b656ea0d8706f81219b2e677e1b31
parente55047ec51a662c12ed53ff543ec7cdf158b2137
net: phy: realtek: Introduce quirk to mark RXC not stoppable

When EEE is supported by the PHY and the driver allows it, libphy in the
kernel is configuring the PHY to stop receiving the xMII clock while it
is signaling LPI. While this (usually) works fine in the kernel this is
causing issues in U-Boot when rebooting from the linux kernel with this
bit set (without having the possibility to reset the PHY) where the PHY
suddenly stops working.

A new quirk is introduced to unconditionally reset this bit. If the
quirk is not enabled using the proper configuration symbol, the PHY state
is not changed.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/Kconfig
drivers/net/phy/realtek.c