Commit 1a6a8b0
cpufreq: qcom-hw: Fix reading "reg" with address/size-cells != 2
Commit 054a3ef ("cpufreq: qcom-hw: Allocate qcom_cpufreq_data during
probe") assumed that every reg variable is 4*u32 wide (as most new qcom
SoCs set #address- and #size-cells to <2>. That is not the case for all of
them though. Check the cells values dynamically to ensure the proper
region of the DTB is being read.
Fixes: 054a3ef ("cpufreq: qcom-hw: Allocate qcom_cpufreq_data during probe")
Signed-off-by: Konrad Dybcio <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>1 parent f5f94b9 commit 1a6a8b0
1 file changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| 652 | + | |
652 | 653 | | |
653 | 654 | | |
654 | | - | |
| 655 | + | |
655 | 656 | | |
656 | 657 | | |
657 | 658 | | |
| |||
679 | 680 | | |
680 | 681 | | |
681 | 682 | | |
682 | | - | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
683 | 698 | | |
684 | 699 | | |
685 | 700 | | |
| |||
743 | 758 | | |
744 | 759 | | |
745 | 760 | | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
746 | 764 | | |
747 | 765 | | |
748 | 766 | | |
| |||
0 commit comments