Commit 90ae93d
interconnect: qcom: rpm: 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: 62feb14 ("interconnect: qcom: Consolidate interconnect RPM support")
Fixes: 30c8fa3 ("interconnect: qcom: Add MSM8916 interconnect provider driver")
Cc: stable@vger.kernel.org # 5.7
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230306075651.2449-9-johan+linaro@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>1 parent bc46320 commit 90ae93d
1 file changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | 506 | | |
508 | 507 | | |
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
512 | 511 | | |
513 | 512 | | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
| 513 | + | |
520 | 514 | | |
521 | 515 | | |
522 | 516 | | |
523 | 517 | | |
524 | 518 | | |
525 | 519 | | |
526 | 520 | | |
527 | | - | |
| 521 | + | |
528 | 522 | | |
529 | 523 | | |
530 | 524 | | |
| |||
538 | 532 | | |
539 | 533 | | |
540 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
541 | 539 | | |
542 | 540 | | |
543 | 541 | | |
544 | 542 | | |
545 | 543 | | |
546 | 544 | | |
547 | | - | |
| 545 | + | |
548 | 546 | | |
549 | 547 | | |
550 | 548 | | |
551 | | - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
552 | 553 | | |
553 | 554 | | |
554 | | - | |
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| 564 | + | |
564 | 565 | | |
565 | 566 | | |
566 | | - | |
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| |||
0 commit comments