diff options
author | Marek BehĂșn <kabel@kernel.org> | 2023-12-19 17:24:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-25 06:20:14 +0000 |
commit | e9301af385e7864dea353f5e58cad7339dd6c718 (patch) | |
tree | 8cb378d8ad218f261c9cf40f772210d6c56a35be /net/smc | |
parent | 3b83fa94cf316aaf9ad9a367ac8031a06d31649b (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 <quic_leiwei@quicinc.com>
Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Tested-by: Lei Wei <quic_leiwei@quicinc.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
0 files changed, 0 insertions, 0 deletions