Message ID | 1467208335-29876-6-git-send-email-aisheng.dong@nxp.com (mailing list archive) |
---|---|
State | Rejected, archived |
Delegated to: | Stephen Boyd |
Headers | show
Return-Path: <linux-clk-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A281B607D8 for <patchwork-linux-clk@patchwork.kernel.org>; Wed, 29 Jun 2016 13:59:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 945F62865A for <patchwork-linux-clk@patchwork.kernel.org>; Wed, 29 Jun 2016 13:59:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88FAC2865B; Wed, 29 Jun 2016 13:59:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91D7328664 for <patchwork-linux-clk@patchwork.kernel.org>; Wed, 29 Jun 2016 13:59:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752962AbcF2N7n (ORCPT <rfc822;patchwork-linux-clk@patchwork.kernel.org>); Wed, 29 Jun 2016 09:59:43 -0400 Received: from mail-bl2on0063.outbound.protection.outlook.com ([65.55.169.63]:13451 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752955AbcF2N7l (ORCPT <rfc822;linux-clk@vger.kernel.org>); Wed, 29 Jun 2016 09:59:41 -0400 Received: from BY2PR03CA067.namprd03.prod.outlook.com (10.141.249.40) by DM2PR0301MB0862.namprd03.prod.outlook.com (10.160.215.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Wed, 29 Jun 2016 13:59:37 +0000 Received: from BN1AFFO11FD033.protection.gbl (2a01:111:f400:7c10::141) by BY2PR03CA067.outlook.office365.com (2a01:111:e400:2c5d::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Wed, 29 Jun 2016 13:59:36 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD033.mail.protection.outlook.com (10.58.52.246) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Wed, 29 Jun 2016 13:59:35 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u5TDx9x8014881; Wed, 29 Jun 2016 06:59:32 -0700 From: Dong Aisheng <aisheng.dong@nxp.com> To: <linux-clk@vger.kernel.org> CC: <linux-kernel@vger.kernel.org>, <sboyd@codeaurora.org>, <mturquette@baylibre.com>, <shawnguo@kernel.org>, <linux-arm-kernel@lists.infradead.org>, <tglx@linutronix.de>, <aisheng.dong@nxp.com>, <stefan@agner.ch>, <l.stach@pengutronix.de>, <cyrille.pitchen@atmel.com>, <manabian@gmail.com>, <anson.huang@nxp.com> Subject: [PATCH RFC 5/7] clk: use polling way for SYSTEM_SUSPEND state too Date: Wed, 29 Jun 2016 21:52:13 +0800 Message-ID: <1467208335-29876-6-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467208335-29876-1-git-send-email-aisheng.dong@nxp.com> References: <1467208335-29876-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131116823762453350; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(81156014)(36756003)(81166006)(50986999)(8676002)(5003940100001)(85426001)(50226002)(8936002)(87936001)(76176999)(356003)(19580395003)(189998001)(110136002)(86362001)(6806005)(8666005)(7846002)(77096005)(48376002)(4326007)(97736004)(2950100001)(92566002)(50466002)(2906002)(2351001)(229853001)(305945005)(19580405001)(47776003)(586003)(105606002)(33646002)(106466001)(104016004)(68736007)(7059030)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0862; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD033; 1:EEahPQcYORyw04Kq6E7NVjk+NXaO4TQ+o/ayi/SQHLt+JyCRagS+7omcECWr4drR3XW/qVa2vDyJlez9jaisqC9NfquMZ7bK7cwjzE0UCOJqoAwBgzG6MW3J3KK6DZIRmIDCeHx8rw1/hxXBRp64hsIQJblOUaxLKXRWKSSjK5JvI5YQn3SguYXpaVLad3TVXc0rLNqbMMj9Wjveozf/RMrmbi1OGXom09RMt+/kJSZ71wGw4DWpDBV/4Ffwi/zOfY5xcnIRfWjQgBDTutQqh4K/kssYu+MXcsHBX3SYvcBgV/zoWkYe0/xH7JXW+Lfmj8b1sKwNSz7yInC8iKA52LYXazwLWFyAg39+X8brlOt2MyXwAS0qbFCKKM8dA3ynCZutcFk87pkKP8cA3G45ohSblBmecxgMyWznjxZ/lG88UqBVmnYKyy5x2YEQxzVyrZiodQArLM0Pp11/pIpURT6PmBliBU78Sp770thGhtn6FTzXCRkJecEg7iIWqMbnTQeFZdN125g015PRW2TO3+R20JL6OVzZXrPb5SzPMe0Rf1kbcD02mVePfc9nwhVQBo6PzXuWlZK0iRpSIOK3UZWCQKdTNTuG2SSkmUB1eYyLsnib0V0LLXRjWoQhohnqsS4cyGxWobZYXmswbY589P5Ly8W0Oy3OTlv2T/H2ZMg6sYohJvPzdD+/qh4GSvYNoFq/ereZu7WxTQSXH53swlGFWbhZSyqkm3lH8Vx3gAM= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 9ba332d9-4faa-47eb-e204-08d3a0259ae4 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0862; 2:0yl0mX7cgjSPrfv6LVVBiLoQxTo9Edz8LTrfmtSUDkeD/EvWNcxjKx4jRyFOuI+qhW6+Dbf+6XXo4Pl3ZWSG1BgOWVTSJpijADfk++teZBocOGGyH062EYXoPJB9ZSvteviKYSYZACHAMPu63msxxnX3rC+Xj5O43EeKDAptA35rDCcCxyploL9tuK7BuUac; 3:iMSIVPswHKTqilxOiiGYFHnqMSVRoE/Hqi4M8z4V5A1XwwcCgWvnoF1dl+gI+r/FDFPfcoVBBbJAEL/OHTOj1EYYIllFPvP9Lp7JrjLv8r/6gSDsVZvj/RUcRTliiiRxuDhSEep4Y0BwDjTqiZ5bEEtB4wVZyq63MBMWRvXPhPWbQAaX1VKo7RkJd+pm8AvcsIOrAfDe8fe/oAYGo3k6J/wTLkOE1sDwYH9CtVauu4g= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0862; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0862; 25:8IaomMV1F2fuNJCKyHi6cBVUbCnZCpUqpm4CSZ247jdiVaavs044E7ZzsUkxADO+hjigdycf+4JoszyXF6plLPFjCzozO2IaVboKI/0O124pCzpgBJ0LDcPmEyVWhUVBYKcqu0S7WDBxSbTpKeP02/pkKUEgCHJjzJnPFFj4fh+EHhsCVg4olpYcXKyeEqjkTAZGyKY3MKy3yE6OpTTE1AYyb39k9HR8otRUoN91vP9D1IjOMEHx/WICMeiTP9zmdDxnHSo2OPPgQkKpcDzNLx5UhhRPeRrrybLskxNv+PaydF/BcqdudDfqSVqiews0QxUHkcdEqjxfsLUKFHYg5dCFlwyrUiGopmDN3W2bJpw4v0WQxueS48/p23Nr2REtD7Nq87w7/SMJMkimc2zntk9mFAZzu0DmbFRV+s0m2Rco7LMJbXEcVzi9apsBQ2zEe6z3j7hAXnrX8hLn1m6K2X83neKaV9tbU/ZXzXVE9s185WmvTgKUgf2Lv1ru7pNtPxNtmLG+an8Gw4hjYB8fIiVtF88hKI9ZLn6dbqA9ITQ+XJZCrRf7LS1J5QZ4nU/v+Rnb5re3ImvfG3G3JoOAbsQlwjEfVvZpooBq/nhPpaB8ewL2GE8firvCNOCD9bJcP/bn3DTOA1LvwDqZk9LxFLEZs/H1oRp4a3XOEH5tiFMJYn+4QJKgz3xtdHMh/vSI4Wc1bstScQysXNQPQ1CAH96qKjr+gaGJ5MvVlAL33XHSgx+CwQRL6qGK7ve3vwxjjxAWSziMBOTp8CnmEIRXpKEuHsIh5g992C173DNaz2o= X-Microsoft-Antispam-PRVS: <DM2PR0301MB086283883844FA4FBFE9A15F80230@DM2PR0301MB0862.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13023025)(5005006)(8121501046)(13015025)(13024025)(13018025)(3002001)(10201501046)(6055026); SRVR:DM2PR0301MB0862; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0862; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0862; 4:IFU8sybSYD1UuwFPl33uToy+ODeJX62FXxkJ2fp6Wk/kwtEiX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neFZb7qL8LkSspaaOw9aVgittihnRpzlOlZhOupNEG/CO7LccrvVheo7Ag5DVx81cyYNlxzgG8prDN6vemq7aNInOIkN9sId9PhmWzwKIh3kr138Slh2BrPVq4+dT98BSiROnho22asn99em2e8EFVUCIGm/quAKQtgCw8U8LsJnhc+KfnVFWLahPwcy; 5:ZQ8gU0DgwnK+euM22w8RczhKQ5TUtOvajVpX2Yn9fwLyK63wcthg8OS+u8ruWhCQMxU06mXM2MXWn78BxOdVIUW/zidY8eHZwcR2ggbeeVcpmr1epZH6vKPMSuzNez7ZLTVObfnWbEGS/EGAjxHTk3kSRCbGDhnRqj6Xgs5K4Bk=; 24:0se7BBiK6VdespyIFH3qLAafitKrUBz3+ujVpj1E2wDOFSaEfYqztJKDVBmMuYqBZMUbS+xoLMjXNxX/ILeMILUzRKhyoKEtG1hLrQf5v18=; 7:yZNXYEXIPPqkiFGUNwjwF+/LTKfnGrgxjLFLcQxweZwfCg+g+qiU+m0UA5eqcLaj3HOXUpsGhryG3p1fQozkGCZL4M7hLQTuram+0AKnIW1QCa6Jzuv7n0EcyoQ2/anAa/aQ1b0kH7UElBbQz0sWF21oqRg3xQoTH8PG2j1fIGiuKXaHn68iFW3wpGwMrJdTs33aPWbNO+2IIRgOgCE5Hj2GQqElxT0yDe8xGPjGBF6JvBFzNGqkWTrelMxJA8RqXTK/KR3qr5F4SNY4ErA+iQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2016 13:59:35.9645 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0862 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: <linux-clk.vger.kernel.org> X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 9369dbb71118..5091ec9bd665 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -601,7 +601,8 @@ static void clk_core_unprepare(struct clk_core *core) __func__, core->name); break; } - if (system_state == SYSTEM_BOOTING) + if (system_state == SYSTEM_BOOTING || + system_state == SYSTEM_SUSPEND) /* * Busy loop as we can't schedule in * early boot @@ -670,7 +671,8 @@ static int clk_core_prepare(struct clk_core *core) ret = -ETIMEDOUT; break; } - if (system_state == SYSTEM_BOOTING) + if (system_state == SYSTEM_BOOTING || + system_state == SYSTEM_SUSPEND) /* * Busy loop as we can't * schedule in early boot @@ -1256,7 +1258,8 @@ static int __clk_set_parent(struct clk_core *core, struct clk_core *parent, ret = -ETIMEDOUT; break; } - if (system_state == SYSTEM_BOOTING) + if (system_state == SYSTEM_BOOTING || + system_state == SYSTEM_SUSPEND) /* * Busy loop as we can't * schedule in early boot @@ -1550,7 +1553,8 @@ static void clk_change_rate(struct clk_core *core) __func__, core->name); break; } - if (system_state == SYSTEM_BOOTING) + if (system_state == SYSTEM_BOOTING || + system_state == SYSTEM_SUSPEND) /* * Busy loop as we can't * schedule in early boot
During SYSTEM_SUSPEND state, the arch irq is disabled and there's no way to sleep. Using polling for it too. Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> --- drivers/clk/clk.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)