Commit 2e8d243
net: dsa: lan9303: Protect ALR operations with mutex
ALR table operations are a sequence of related register operations which
should be protected from concurrent access. The alr_cache should also be
protected. Add alr_mutex doing that.
Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent df45bf8 commit 2e8d243
2 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| 586 | + | |
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
| |||
606 | 607 | | |
607 | 608 | | |
608 | 609 | | |
| 610 | + | |
609 | 611 | | |
610 | 612 | | |
611 | 613 | | |
| |||
694 | 696 | | |
695 | 697 | | |
696 | 698 | | |
| 699 | + | |
697 | 700 | | |
698 | 701 | | |
699 | 702 | | |
700 | | - | |
| 703 | + | |
| 704 | + | |
701 | 705 | | |
| 706 | + | |
702 | 707 | | |
703 | 708 | | |
704 | 709 | | |
705 | 710 | | |
706 | 711 | | |
| 712 | + | |
707 | 713 | | |
708 | 714 | | |
709 | 715 | | |
| |||
713 | 719 | | |
714 | 720 | | |
715 | 721 | | |
| 722 | + | |
716 | 723 | | |
717 | 724 | | |
718 | | - | |
| 725 | + | |
719 | 726 | | |
720 | 727 | | |
721 | 728 | | |
722 | 729 | | |
723 | 730 | | |
724 | 731 | | |
| 732 | + | |
| 733 | + | |
725 | 734 | | |
726 | 735 | | |
727 | 736 | | |
| |||
1323 | 1332 | | |
1324 | 1333 | | |
1325 | 1334 | | |
| 1335 | + | |
1326 | 1336 | | |
1327 | 1337 | | |
1328 | 1338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments