aboutsummaryrefslogtreecommitdiff
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorMarek BehĂșn <[email protected]>2023-12-19 17:24:15 +0100
committerDavid S. Miller <[email protected]>2023-12-25 06:20:14 +0000
commite9301af385e7864dea353f5e58cad7339dd6c718 (patch)
tree8cb378d8ad218f261c9cf40f772210d6c56a35be /lib/dynamic_debug.c
parent3b83fa94cf316aaf9ad9a367ac8031a06d31649b (diff)
net: sfp: fix PHY discovery for FS SFP-10G-T module
Commit 2f3ce7a56c6e ("net: sfp: rework the RollBall PHY waiting code") changed the long wait before accessing RollBall / FS modules into probing for PHY every 1 second, and trying 25 times. Wei Lei reports that this does not work correctly on FS modules: when initializing, they may report values different from 0xffff in PHY ID registers for some MMDs, causing get_phy_c45_ids() to find some bogus MMD. Fix this by adding the module_t_wait member back, and setting it to 4 seconds for FS modules. Fixes: 2f3ce7a56c6e ("net: sfp: rework the RollBall PHY waiting code") Reported-by: Wei Lei <[email protected]> Signed-off-by: Marek BehĂșn <[email protected]> Tested-by: Lei Wei <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions