Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: sfp: fix PHY discovery for FS SFP-10G-T module
Commit 2f3ce7a ("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: 2f3ce7a ("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]>
- Loading branch information