diff options
| author | Ulf Hansson <[email protected]> | 2020-03-10 10:40:23 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2020-03-14 11:03:05 +0000 |
| commit | 56cb26891ea4180121265dc6b596015772c4a4b8 (patch) | |
| tree | 81ce75e68ae460729df12f0d0eecfe055cd5641d /tools/perf/scripts/python/syscall-counts.py | |
| parent | Linux 5.6-rc5 (diff) | |
| download | kernel-56cb26891ea4180121265dc6b596015772c4a4b8.tar.gz kernel-56cb26891ea4180121265dc6b596015772c4a4b8.zip | |
PM / Domains: Allow no domain-idle-states DT property in genpd when parsing
Commit 2c361684803e ("PM / Domains: Don't treat zero found compatible idle
states as an error"), moved of_genpd_parse_idle_states() towards allowing
none compatible idle state to be found for the device node, rather than
returning an error code.
However, it didn't consider that the "domain-idle-states" DT property may
be missing as it's optional, which makes of_count_phandle_with_args() to
return -ENOENT. Let's fix this to make the behaviour consistent.
Fixes: 2c361684803e ("PM / Domains: Don't treat zero found compatible idle states as an error")
Reported-by: Benjamin Gaignard <[email protected]>
Cc: 4.20+ <[email protected]> # 4.20+
Reviewed-by: Sudeep Holla <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
