net: phy: ksz90x1: Handle ksz9131 LED errata
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Fri, 28 Feb 2025 12:47:53 +0000 (12:47 +0000)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 19 Mar 2025 02:38:51 +0000 (03:38 +0100)
commitfbc35394560396c6d52f0360b4fbd899ae2de643
tree54d37c84ae98865d146691da6a934f39430d493a
parent985dc81a1d962a04ad1084bc4fe912492c8fe463
net: phy: ksz90x1: Handle ksz9131 LED errata

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

Based on commit 0316c7e66bbd in the Linux kernel.

Tested-by: Quentin Schulz <quentin.schulz@cherry.de> # RK3588 Tiger
Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
drivers/net/phy/micrel_ksz90x1.c