net: phy: micrel: ksz9131 led errata workaround
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 7 Oct 2021 16:45:35 +0000 (18:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2021 16:10:54 +0000 (17:10 +0100)
commit0316c7e66bbd16cf2d01a4e2f5afa6afb01278f2
tree3a0083465ad199f62a0fe4ad6978802f788c5e54
parent9653e613e00a140973d84585eb1e8eb4a92c782c
net: phy: micrel: ksz9131 led errata workaround

Micrel KSZ9131 PHY LED behavior is not correct when configured in
Individual Mode, LED1 (Activity LED) is in the ON state when there is
no-link.

Workaround this by setting bit 9 of register 0x1e after verifying that
the LED configuration is Individual Mode.

This issue is described in KSZ9131RNX Silicon Errata DS80000693B [*]
and according to that it will not be corrected in a future silicon
revision.

[*] https://ww1.microchip.com/downloads/en/DeviceDoc/KSZ9131RNX-Silicon-Errata-and-Data-Sheet-Clarification-80000863B.pdf

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Philippe Schenker <philippe.schenker@toradex.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c