From patchwork Fri Jun 3 10:00:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 846532 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p53APPWI009265 for ; Fri, 3 Jun 2011 10:27:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752963Ab1FCKBI (ORCPT ); Fri, 3 Jun 2011 06:01:08 -0400 Received: from na3sys009aog102.obsmtp.com ([74.125.149.69]:41473 "EHLO na3sys009aog102.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752215Ab1FCKBH (ORCPT ); Fri, 3 Jun 2011 06:01:07 -0400 Received: from mail-fx0-f54.google.com ([209.85.161.54]) (using TLSv1) by na3sys009aob102.postini.com ([74.125.148.12]) with SMTP ID DSNKTeiw4IsWMjoKrTMrfBMZV6PqHHncHEUM@postini.com; Fri, 03 Jun 2011 03:01:07 PDT Received: by mail-fx0-f54.google.com with SMTP id 11so1828345fxm.41 for ; Fri, 03 Jun 2011 03:01:04 -0700 (PDT) Received: by 10.223.155.140 with SMTP id s12mr1869345faw.148.1307095264724; Fri, 03 Jun 2011 03:01:04 -0700 (PDT) Received: from localhost.localdomain (a62-248-131-233.elisa-laajakaista.fi [62.248.131.233]) by mx.google.com with ESMTPS id b22sm445843fak.1.2011.06.03.03.01.02 (version=SSLv3 cipher=OTHER); Fri, 03 Jun 2011 03:01:03 -0700 (PDT) From: Tomi Valkeinen To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: b-cousson@ti.com, paul@pwsan.com, khilman@ti.com, Tomi Valkeinen Subject: [PATCH 03/27] OMAP: DSS2: Reset LANEx_ULPS_SIG2 bits after use Date: Fri, 3 Jun 2011 13:00:13 +0300 Message-Id: <1307095237-14805-4-git-send-email-tomi.valkeinen@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1307095237-14805-1-git-send-email-tomi.valkeinen@ti.com> References: <1307095237-14805-1-git-send-email-tomi.valkeinen@ti.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 03 Jun 2011 10:27:54 +0000 (UTC) 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 --- drivers/video/omap2/dss/dsi.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index 69c2d4f..4496d09 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);