[PATCH] media: stm32: dcmipp: Propagate runtime resume errors
Pengpeng Hou
pengpeng at iscas.ac.cn
Sat Jul 4 00:17:40 PDT 2026
dcmipp_runtime_resume() can fail while preparing the device clocks, but
dcmipp_resume() currently ignores the result of
pm_runtime_force_resume() and always returns success.
Return the pm_runtime_force_resume() result so system resume does not
hide a failed runtime resume.
Signed-off-by: Pengpeng Hou <pengpeng at iscas.ac.cn>
---
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c
index 49398d077764..516334541b2c 100644
--- a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c
+++ b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c
@@ -649,9 +649,7 @@ static int dcmipp_resume(struct device *dev)
pinctrl_pm_select_default_state(dev);
/* clock enable */
- pm_runtime_force_resume(dev);
-
- return 0;
+ return pm_runtime_force_resume(dev);
}
static const struct dev_pm_ops dcmipp_pm_ops = {
--
2.43.0
More information about the linux-arm-kernel
mailing list