2024-03-26 03:27:28

by Changhuang Liang

[permalink] [raw]
Subject: [PATCH v1 2/4] media: cadence: csi2rx: Add suspend and resume support

This patch implements suspend and resume operation for Cadence MIPI-CSI2
RX Controller.

Signed-off-by: Changhuang Liang <[email protected]>
---
drivers/media/platform/cadence/cdns-csi2rx.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c
index a8b86369e34f..1f629be91bf5 100644
--- a/drivers/media/platform/cadence/cdns-csi2rx.c
+++ b/drivers/media/platform/cadence/cdns-csi2rx.c
@@ -778,6 +778,7 @@ static void csi2rx_remove(struct platform_device *pdev)

static const struct dev_pm_ops csi2rx_pm_ops = {
SET_RUNTIME_PM_OPS(csi2rx_suspend, csi2rx_resume, NULL)
+ SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
};

static const struct of_device_id csi2rx_of_table[] = {
--
2.25.1