Commit e9301af
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 <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>1 parent 3b83fa9 commit e9301af
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| |||
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
391 | 398 | | |
392 | 399 | | |
393 | 400 | | |
| |||
2329 | 2336 | | |
2330 | 2337 | | |
2331 | 2338 | | |
| 2339 | + | |
2332 | 2340 | | |
2333 | 2341 | | |
2334 | 2342 | | |
| |||
2566 | 2574 | | |
2567 | 2575 | | |
2568 | 2576 | | |
2569 | | - | |
| 2577 | + | |
| 2578 | + | |
2570 | 2579 | | |
2571 | | - | |
| 2580 | + | |
2572 | 2581 | | |
2573 | 2582 | | |
2574 | 2583 | | |
| |||
2582 | 2591 | | |
2583 | 2592 | | |
2584 | 2593 | | |
2585 | | - | |
2586 | | - | |
| 2594 | + | |
| 2595 | + | |
2587 | 2596 | | |
2588 | 2597 | | |
2589 | 2598 | | |
| |||
0 commit comments