From patchwork Wed Jul 27 12:21:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sangwook X-Patchwork-Id: 3177 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3134123F3F for ; Wed, 27 Jul 2011 12:24:00 +0000 (UTC) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.216.173]) by fiordland.canonical.com (Postfix) with ESMTP id EBE37A18258 for ; Wed, 27 Jul 2011 12:23:59 +0000 (UTC) Received: by qyk10 with SMTP id 10so2557744qyk.11 for ; Wed, 27 Jul 2011 05:23:59 -0700 (PDT) Received: by 10.229.68.200 with SMTP id w8mr1674146qci.114.1311769439218; Wed, 27 Jul 2011 05:23:59 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.217.78 with SMTP id hl14cs143573qcb; Wed, 27 Jul 2011 05:23:59 -0700 (PDT) Received: by 10.227.32.74 with SMTP id b10mr3924629wbd.33.1311769437989; Wed, 27 Jul 2011 05:23:57 -0700 (PDT) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id fd10si136885wbb.1.2011.07.27.05.23.56 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Jul 2011 05:23:56 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of sangwook.lee@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of sangwook.lee@linaro.org) smtp.mail=sangwook.lee@linaro.org Received: by wwe6 with SMTP id 6so1283014wwe.31 for ; Wed, 27 Jul 2011 05:23:56 -0700 (PDT) Received: by 10.216.163.16 with SMTP id z16mr2757882wek.5.1311769435957; Wed, 27 Jul 2011 05:23:55 -0700 (PDT) Received: from localhost.localdomain (host109-149-107-100.range109-149.btcentralplus.com [109.149.107.100]) by mx.google.com with ESMTPS id g48sm45348wee.37.2011.07.27.05.23.53 (version=SSLv3 cipher=OTHER); Wed, 27 Jul 2011 05:23:55 -0700 (PDT) From: Sangwook Lee To: samsung@lists.linaro.org, patches@linaro.org Cc: Sangwook Lee Subject: [PATCH] ARM:EXYNOS4:Fix Samsung Power Domain Date: Wed, 27 Jul 2011 13:21:48 +0100 Message-Id: <1311769308-4183-1-git-send-email-sangwook.lee@linaro.org> X-Mailer: git-send-email 1.7.4.1 Func:samsung_pd_init should be postponed utill end of drivers registeration because this activates runtime_suspend in advance. For example, If PD's runtime_suspend is called, it will power down LCD0_CONF0. Since this happens before s3cfb driver registers itself, it makes s3cfb_probe hang up with both Origen and SMDK Signed-off-by: Sangwook Lee --- arch/arm/plat-samsung/pd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-samsung/pd.c b/arch/arm/plat-samsung/pd.c index efe1d56..5ffc737 100644 --- a/arch/arm/plat-samsung/pd.c +++ b/arch/arm/plat-samsung/pd.c @@ -92,4 +92,4 @@ static int __init samsung_pd_init(void) return ret; } -arch_initcall(samsung_pd_init); +late_initcall_sync(samsung_pd_init);