From: Tomi Valkeinen Date: Tue, 31 May 2011 13:55:47 +0000 (+0300) Subject: OMAP: DSS2: Reset LANEx_ULPS_SIG2 bits after use X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=8ef0e614b3ed2e2daf7e9cefd9a2f12652f824bc;p=~shefty%2Frdma-dev.git OMAP: DSS2: Reset LANEx_ULPS_SIG2 bits after use LANEx_ULPS_SIG2 bits are left on after entering ULPS. This doesn't cause any problems currently, as DSI HW is reset when it is enabled. However, if the reset is not done, operation fails if the bits are still set. So reset the bits after entering ULPS to ensure operation even without HW reset. Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index 69c2d4fe074..4496d09315c 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c @@ -3395,6 +3395,10 @@ static int dsi_enter_ulps(struct platform_device *dsidev) dsi_unregister_isr_cio(dsidev, dsi_completion_handler, &completion, DSI_CIO_IRQ_ULPSACTIVENOT_ALL0); + /* Reset LANEx_ULPS_SIG2 */ + REG_FLD_MOD(dsidev, DSI_COMPLEXIO_CFG2, (0 << 0) | (0 << 1) | (0 << 2), + 7, 5); + dsi_cio_power(dsidev, DSI_COMPLEXIO_POWER_ULPS); dsi_if_enable(dsidev, false);