diff options
| author | Florian Larysch <[email protected]> | 2025-07-23 22:20:42 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-25 20:43:24 +0000 |
| commit | 49db61c27c4bbd24364086dc0892bd3e14c1502e (patch) | |
| tree | ee21ab3617d7611121db2ec0d29e5bc8f4c646ee /drivers/fpga/zynq-fpga.c | |
| parent | neighbour: Fix null-ptr-deref in neigh_flush_dev(). (diff) | |
| download | kernel-49db61c27c4bbd24364086dc0892bd3e14c1502e.tar.gz kernel-49db61c27c4bbd24364086dc0892bd3e14c1502e.zip | |
net: phy: micrel: fix KSZ8081/KSZ8091 cable test
Commit 21b688dabecb ("net: phy: micrel: Cable Diag feature for lan8814
phy") introduced cable_test support for the LAN8814 that reuses parts of
the KSZ886x logic and introduced the cable_diag_reg and pair_mask
parameters to account for differences between those chips.
However, it did not update the ksz8081_type struct, so those members are
now 0, causing no pairs to be tested in ksz886x_cable_test_get_status
and ksz886x_cable_test_wait_for_completion to poll the wrong register
for the affected PHYs (Basic Control/Reset, which is 0 in normal
operation) and exit immediately.
Fix this by setting both struct members accordingly.
Fixes: 21b688dabecb ("net: phy: micrel: Cable Diag feature for lan8814 phy")
Cc: [email protected]
Signed-off-by: Florian Larysch <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions
