Commit bfe7bcd
interconnect: qcom: msm8974: fix registration race
The current interconnect provider registration interface is inherently
racy as nodes are not added until the after adding the provider. This
can specifically cause racing DT lookups to fail.
Switch to using the new API where the provider is not registered until
after it has been fully initialised.
Fixes: 4e60a95 ("interconnect: qcom: add msm8974 driver")
Cc: stable@vger.kernel.org # 5.5
Reviewed-by: Brian Masney <bmasney@redhat.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230306075651.2449-12-johan+linaro@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>1 parent 74240a5 commit bfe7bcd
1 file changed
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
696 | 695 | | |
697 | 696 | | |
698 | 697 | | |
699 | 698 | | |
700 | 699 | | |
701 | 700 | | |
702 | 701 | | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
| 702 | + | |
708 | 703 | | |
709 | 704 | | |
710 | 705 | | |
711 | 706 | | |
712 | 707 | | |
713 | 708 | | |
714 | 709 | | |
715 | | - | |
| 710 | + | |
716 | 711 | | |
717 | 712 | | |
718 | 713 | | |
| |||
729 | 724 | | |
730 | 725 | | |
731 | 726 | | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
732 | 731 | | |
733 | 732 | | |
734 | 733 | | |
735 | 734 | | |
736 | | - | |
| 735 | + | |
737 | 736 | | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | 737 | | |
742 | 738 | | |
743 | 739 | | |
| |||
747 | 743 | | |
748 | 744 | | |
749 | 745 | | |
| 746 | + | |
750 | 747 | | |
751 | 748 | | |
752 | | - | |
753 | 749 | | |
754 | 750 | | |
755 | 751 | | |
| |||
0 commit comments