Commit 7b103aa
net: dsa: mxl-gsw1xx: manually clear RANEG bit
Despite being documented as self-clearing, the RANEG bit sometimes
remains set, preventing auto-negotiation from happening.
Manually clear the RANEG bit after 10ms as advised by MaxLinear.
In order to not hold RTNL during the 10ms of waiting schedule
delayed work to take care of clearing the bit asynchronously, which
is similar to the self-clearing behavior.
Fixes: 2233593 ("net: dsa: add driver for MaxLinear GSW1xx switch family")
Reported-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/76745fceb5a3f53088110fb7a96acf88434088ca.1765241054.git.daniel@makrotopia.org
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 651b253 commit 7b103aa
1 file changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
148 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| |||
428 | 433 | | |
429 | 434 | | |
430 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
431 | 445 | | |
432 | 446 | | |
433 | 447 | | |
434 | 448 | | |
| 449 | + | |
| 450 | + | |
435 | 451 | | |
436 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
437 | 459 | | |
438 | 460 | | |
439 | 461 | | |
| |||
636 | 658 | | |
637 | 659 | | |
638 | 660 | | |
| 661 | + | |
| 662 | + | |
639 | 663 | | |
640 | 664 | | |
641 | 665 | | |
| |||
648 | 672 | | |
649 | 673 | | |
650 | 674 | | |
| 675 | + | |
651 | 676 | | |
652 | 677 | | |
653 | 678 | | |
654 | 679 | | |
655 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
656 | 684 | | |
657 | 685 | | |
658 | 686 | | |
659 | 687 | | |
660 | 688 | | |
| 689 | + | |
661 | 690 | | |
662 | 691 | | |
663 | 692 | | |
664 | 693 | | |
665 | 694 | | |
666 | 695 | | |
667 | 696 | | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
668 | 700 | | |
669 | 701 | | |
670 | 702 | | |
| |||
0 commit comments