diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2022-09-26 13:02:49 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-09-28 22:37:55 +0200 |
commit | 998fcd001feb8d71f2838d0949f2aeac2a0cbb9e (patch) | |
tree | e000ac04a9c0b65a187f7f483f82582761f7a7af /drivers/cpuidle | |
parent | Merge tag 'memory-controller-drv-6.1-2' of https://git.kernel.org/pub/scm/lin... (diff) | |
download | linux-998fcd001feb8d71f2838d0949f2aeac2a0cbb9e.tar.xz linux-998fcd001feb8d71f2838d0949f2aeac2a0cbb9e.zip |
firmware/psci: Print a warning if PSCI doesn't accept PC mode
The function psci_pd_try_set_osi_mode() will print an error if enabling
OSI mode fails. To ease debugging PSCI issues print corresponding
message if switching to PC mode fails too.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220926110249.666813-1-dmitry.baryshkov@linaro.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r-- | drivers/cpuidle/cpuidle-psci-domain.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpuidle/cpuidle-psci-domain.c b/drivers/cpuidle/cpuidle-psci-domain.c index 3db4fca1172b..821984947ed9 100644 --- a/drivers/cpuidle/cpuidle-psci-domain.c +++ b/drivers/cpuidle/cpuidle-psci-domain.c @@ -124,10 +124,8 @@ static bool psci_pd_try_set_osi_mode(void) return false; ret = psci_set_osi_mode(true); - if (ret) { - pr_warn("failed to enable OSI mode: %d\n", ret); + if (ret) return false; - } return true; } |