firmware/psci: Print a warning if PSCI doesn't accept PC mode
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 26 Sep 2022 11:02:49 +0000 (14:02 +0300)
committerArnd Bergmann <arnd@arndb.de>
Wed, 28 Sep 2022 20:37:55 +0000 (22:37 +0200)
commit998fcd001feb8d71f2838d0949f2aeac2a0cbb9e
treee000ac04a9c0b65a187f7f483f82582761f7a7af
parentf6f7d870c5b6f3eac19ffedafffe8a8a9a034239
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>
drivers/cpuidle/cpuidle-psci-domain.c
drivers/firmware/psci/psci.c