On Sat Jul 4 15:17:40 2026 +0800, Pengpeng Hou wrote:
> 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 <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 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 = {
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to