diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2022-12-20 16:39:10 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2022-12-27 05:57:14 +0300 |
commit | 1a6a8b0080b09bf14a7d45abfe8020bd63306c17 (patch) | |
tree | 0053b448c17733ec43e534ffb900153d484c4b86 /tools/perf/scripts/python | |
parent | f5f94b9c8b805d87ff185caf9779c3a4d07819e3 (diff) | |
download | linux-1a6a8b0080b09bf14a7d45abfe8020bd63306c17.tar.xz |
cpufreq: qcom-hw: Fix reading "reg" with address/size-cells != 2
Commit 054a3ef683a1 ("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: 054a3ef683a1 ("cpufreq: qcom-hw: Allocate qcom_cpufreq_data during probe")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions