Message ID | 20220727182034.983727-1-dmitry.baryshkov@linaro.org |
---|---|
State | New |
Headers | show |
Series | PSCI: Print a warning if PSCI doesn't accept PC mode | expand |
diff --git a/drivers/firmware/psci/psci.c b/drivers/firmware/psci/psci.c index cfb448eabdaa..b907768eea01 100644 --- a/drivers/firmware/psci/psci.c +++ b/drivers/firmware/psci/psci.c @@ -597,7 +597,9 @@ static int __init psci_1_0_init(struct device_node *np) pr_info("OSI mode supported.\n"); /* Default to PC mode. */ - psci_set_osi_mode(false); + err = psci_set_osi_mode(false); + if (err) + pr_info("setting PC mode failed with %d\n", err); } return 0;
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> --- drivers/firmware/psci/psci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)