aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/psci/psci.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2023-04-14 08:46:19 +0000
committerArnd Bergmann <[email protected]>2023-04-14 11:48:56 +0000
commit43235168793cb1d766ccd015c219068e0547c511 (patch)
tree8d6e345abf980086afc7a8d205b432e3b68f2b4f /drivers/firmware/psci/psci.c
parentMerge tag 'riscv-dt-fixes-for-v6.3-final' of https://git.kernel.org/pub/scm/l... (diff)
downloadkernel-43235168793cb1d766ccd015c219068e0547c511.tar.gz
kernel-43235168793cb1d766ccd015c219068e0547c511.zip
firmware/psci: demote suspend-mode warning to info level
On some Qualcomm platforms, like SC8280XP, the attempt to set PC mode during boot fails with PSCI_RET_DENIED and since commit 998fcd001feb ("firmware/psci: Print a warning if PSCI doesn't accept PC mode") this is now logged at warning level: psci: failed to set PC mode: -3 As there is nothing users can do about the firmware behaving this way, demote the warning to info level and clearly mark it as a firmware bug: psci: [Firmware Bug]: failed to set PC mode: -3 Reviewed-by: Ulf Hansson <[email protected]> Acked-by: Mark Rutland <[email protected]> Acked-by: Sudeep Holla <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Acked-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'drivers/firmware/psci/psci.c')
-rw-r--r--drivers/firmware/psci/psci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firmware/psci/psci.c b/drivers/firmware/psci/psci.c
index 29619f49873a..d9629ff87861 100644
--- a/drivers/firmware/psci/psci.c
+++ b/drivers/firmware/psci/psci.c
@@ -167,7 +167,8 @@ int psci_set_osi_mode(bool enable)
err = invoke_psci_fn(PSCI_1_0_FN_SET_SUSPEND_MODE, suspend_mode, 0, 0);
if (err < 0)
- pr_warn("failed to set %s mode: %d\n", enable ? "OSI" : "PC", err);
+ pr_info(FW_BUG "failed to set %s mode: %d\n",
+ enable ? "OSI" : "PC", err);
return psci_to_linux_errno(err);
}