Automatically switch between ULP and ON states based on ULPM signal from
complex I/O.

Signed-off-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com>
---
 drivers/staging/media/omap4iss/iss_csiphy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/media/omap4iss/iss_csiphy.c 
b/drivers/staging/media/omap4iss/iss_csiphy.c
index 25e6f89..d5c7cec 100644
--- a/drivers/staging/media/omap4iss/iss_csiphy.c
+++ b/drivers/staging/media/omap4iss/iss_csiphy.c
@@ -63,8 +63,8 @@ static int csiphy_set_power(struct iss_csiphy *phy, u32 power)
 
        writel((readl(phy->cfg_regs + CSI2_COMPLEXIO_CFG) &
                ~CSI2_COMPLEXIO_CFG_PWD_CMD_MASK) |
-               power,
-               phy->cfg_regs + CSI2_COMPLEXIO_CFG);
+              power | CSI2_COMPLEXIO_CFG_PWR_AUTO,
+              phy->cfg_regs + CSI2_COMPLEXIO_CFG);
 
        retry_count = 0;
        do {
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to