From patchwork Wed Aug 29 16:00:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10580623 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 68CFE17DB for ; Wed, 29 Aug 2018 16:00:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59A2E2B6EF for ; Wed, 29 Aug 2018 16:00:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57BFE2B708; Wed, 29 Aug 2018 16:00:28 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 F2C872B700 for ; Wed, 29 Aug 2018 16:00:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729164AbeH2T6C (ORCPT ); Wed, 29 Aug 2018 15:58:02 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57841 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727484AbeH2T6C (ORCPT ); Wed, 29 Aug 2018 15:58:02 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180829160025euoutp01b432972db54760905b25c04a2ccb6637~PZkCIzWeu0753307533euoutp017; Wed, 29 Aug 2018 16:00:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180829160025euoutp01b432972db54760905b25c04a2ccb6637~PZkCIzWeu0753307533euoutp017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1535558425; bh=jZPAC1WiWBWi+5yxClSyjoxbJunAPmG7HmdqruU2FlA=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=R+j4puQJeoi7G1V+hBX229oIDG1lx6l23ixued0ZYL4aW1iZPiSfJe4k8v6GvzNkj QGhTwli7CX1oXPfkMgO1FDheeKAr4hCTpSWltlx98XjKWhsMz4fJYIdJpwJzKp6EFK cMltyx89D7NzxU1rI9yibIWh+FaiySUC+fe+3W68= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180829160024eucas1p224c9ec5f14b1bf19f735b9022788759e~PZkBrOkIs1148511485eucas1p2b; Wed, 29 Aug 2018 16:00:24 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id BC.9C.04294.813C68B5; Wed, 29 Aug 2018 17:00:24 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180829160024eucas1p1049ff966800cdc44e876d546978df399~PZkBA9-uD1338513385eucas1p12; Wed, 29 Aug 2018 16:00:24 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-15-5b86c3188013 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 1E.E7.04284.813C68B5; Wed, 29 Aug 2018 17:00:24 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PE8003XYCGI4J70@eusync1.samsung.com>; Wed, 29 Aug 2018 17:00:24 +0100 (BST) From: Marek Szyprowski To: linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 1/2] clk: samsung: Use NOIRQ stage for Exynos5433 clocks suspend/resume Date: Wed, 29 Aug 2018 18:00:12 +0200 Message-id: <20180829160013.9447-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20180829160013.9447-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsWy7djP87oSh9uiDW7+VrDYOGM9q8X1L89Z Lc6f38Bu8bHnHqvFjPP7mCzWHrnLbtH+9CWzA7vHplWdbB59W1YxenzeJBfAHMVlk5Kak1mW WqRvl8CV8WP+ZNaC0+wVR+8vYWpgPMDWxcjJISFgInF5zX6WLkYuDiGBFYwS/26/ZINwPjNK 7Du1lhGm6takHiaIxDJGie6NDxghnAYmiTvdL8Gq2AQMJbredoHNFRFwkPj86TVYEbPAY0aJ rSe/MoMkhAUiJSY+nQ9mswioSiy/9QdoOQcHr4CNxKQX0RDb5CVWbzgAVsIpYCtxtWkZ2GYJ gZ+sEs8fr4U63EXi6f5fTBC2sMSr41vYIWwZic6Og1ANzYwS7TNmsUM4PUBXzNkB1W0tcfj4 RVYQm1mAT2LStunMIFdICPBKdLQJQZR4SPS1dEFDZgKjRMPF10wTGCUXMDKsYhRPLS3OTU8t NspLLdcrTswtLs1L10vOz93ECIy40/+Of9nBuOtP0iFGAQ5GJR7eCzPaooVYE8uKK3MPMUpw MCuJ8O5dCBTiTUmsrEotyo8vKs1JLT7EKM3BoiTOy6eVFi0kkJ5YkpqdmlqQWgSTZeLglGpg NJlfcbk58c+pGSmO1TbfE/Kqv2ruK99xXdG59s/hH3Ol5loLuvI2lduvZ9pj+Cyiq/EEwxcZ Cb6MtUoLtu7NWMgteWrl+8CKaev+LjL1v3OZwSwmdPPCgLz4JZ5ma+WYf91x3n98s4/sZfOy 1BdZix+Khqmf/bXI/qXZwvrLzNzHJhm17LMqV2Ipzkg01GIuKk4EAI+tEey0AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLJMWRmVeSWpSXmKPExsVy+t/xy7oSh9uiDZbPY7LYOGM9q8X1L89Z Lc6f38Bu8bHnHqvFjPP7mCzWHrnLbtH+9CWzA7vHplWdbB59W1YxenzeJBfAHMVlk5Kak1mW WqRvl8CV8WP+ZNaC0+wVR+8vYWpgPMDWxcjJISFgInFrUg9TFyMXh5DAEkaJ5VfPskM4TUwS U5bsYAapYhMwlOh62wXWISLgIPH502tGkCJmgceMEucWb2AFSQgLREpMfDofrIFFQFVi+a0/ LF2MHBy8AjYSk15EQ2yTl1i94QBYCaeArcTVpmVMILYQUMnJaaeZJzDyLGBkWMUoklpanJue W2yoV5yYW1yal66XnJ+7iREYKNuO/dy8g/HSxuBDjAIcjEo8vBdmtEULsSaWFVfmHmKU4GBW EuHduxAoxJuSWFmVWpQfX1Sak1p8iFGag0VJnPe8QWWUkEB6YklqdmpqQWoRTJaJg1OqgTE0 fClr+KlFXgs3qvvEpi76/eMS08VVvPMNvywW23Ck3+pqoODlLbFCxsdWJ09WMX9retmifK+U XEbCab3z7QfULz8Qntv613fNmSUhu1f/tOAJXGXpUvCKaevnhbcWCgorLexo1Tu4XarVQjMr Q+fggX8CVcm2Bkkzt/UuU5ipIOlyNfaGI6cSS3FGoqEWc1FxIgC2gnl5EAIAAA== X-CMS-MailID: 20180829160024eucas1p1049ff966800cdc44e876d546978df399 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180829160024eucas1p1049ff966800cdc44e876d546978df399 References: <20180829160013.9447-1-m.szyprowski@samsung.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Clocks should be suspended as late as possible and resumed as early as possible to let other drivers do their own suspend/resume tasks. NOIRQ callbacks better suit this requirement. Signed-off-by: Marek Szyprowski Acked-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos5433.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index 162de44df099..426980514e67 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -5630,7 +5630,7 @@ static const struct of_device_id exynos5433_cmu_of_match[] = { static const struct dev_pm_ops exynos5433_cmu_pm_ops = { SET_RUNTIME_PM_OPS(exynos5433_cmu_suspend, exynos5433_cmu_resume, NULL) - SET_LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume) };