From patchwork Thu Sep 6 16:02:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10590825 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 4BDA95A4 for ; Thu, 6 Sep 2018 16:02:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 409A32AEA8 for ; Thu, 6 Sep 2018 16:02:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34E972AEAD; Thu, 6 Sep 2018 16:02:49 +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 BD76E2AEA8 for ; Thu, 6 Sep 2018 16:02:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730322AbeIFUi6 (ORCPT ); Thu, 6 Sep 2018 16:38:58 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:48364 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730272AbeIFUi6 (ORCPT ); Thu, 6 Sep 2018 16:38:58 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180906160247euoutp016e076c7f6cd1af2baab2a07d7d746685~R2wYUBc3t2041820418euoutp01e; Thu, 6 Sep 2018 16:02:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180906160247euoutp016e076c7f6cd1af2baab2a07d7d746685~R2wYUBc3t2041820418euoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1536249767; bh=YQQ9Q3gQDkyP0LydfEVZQnqD47Gs0whA1Th2PgVxbKQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Wlq9+Lk55mOxg4nDI396VRpg1lkMmNpgTSZrKZntE+BESAYXruMFTmprdSoeMxvcd VX5QvTXQlf2Hvqo+vI9X3Mfj6dh+Tf8mRjWSHRequyDl79vjtE+zjDgJ5nZ0WSFdk2 ZguwCrDwQoDiEEMXoSwEH6oKo1X5ZLmyjh+Xvwmc= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180906160246eucas1p1efc314d541d858d0c9131c51d82fc8a5~R2wXtqdj81046610466eucas1p1L; Thu, 6 Sep 2018 16:02:46 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 03.E6.04294.5AF419B5; Thu, 6 Sep 2018 17:02:46 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180906160245eucas1p257fef879d3bb6127cb1afa6c357a953f~R2wW586Ka0478504785eucas1p2f; Thu, 6 Sep 2018 16:02:45 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-2e-5b914fa5147e Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 40.6D.04128.5AF419B5; Thu, 6 Sep 2018 17:02:45 +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 <0PEN0037W5WGAX30@eusync1.samsung.com>; Thu, 06 Sep 2018 17:02:45 +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 v2 1/2] clk: samsung: Use NOIRQ stage for Exynos5433 clocks suspend/resume Date: Thu, 06 Sep 2018 18:02:35 +0200 Message-id: <20180906160236.4326-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20180906160236.4326-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsWy7djP87rL/CdGG1zYyWSxccZ6VovrX56z Wpw/v4Hd4mPPPVaLGef3MVmsPXKX3aL96UtmB3aPTas62Tz6tqxi9Pi8SS6AOYrLJiU1J7Ms tUjfLoEr486v56wFd7gqGnf2sDYwTubsYuTgkBAwkTg71b+LkYtDSGAFo8Sd8+dZIJzPjBL9 1+6ydzFyghXNO3gKKrGMUaLl0xZmCKeBSeJWcxsTSBWbgKFE19suNhBbRMBB4vOn14wgRcwC jxkltp78ygySEBaIkWj5+AzMZhFQlbg86woriM0rYCMx49UvZoh18hKrNxwAszkFbCVu73sF tlpC4CurxNdrV5kgilwkZp85yghhC0u8Or4F6lYZicuTu6Eamhkl2mfMYodweoDOmLODDaLK WuLw8Ytgq5kF+CQmbZvODAkOXomONiGIEg+JRQt6GCH+nMAo8WDeT8YJjJILGBlWMYqnlhbn pqcWG+WllusVJ+YWl+al6yXn525iBEbc6X/Hv+xg3PUn6RCjAAejEg/vA6OJ0UKsiWXFlbmH GCU4mJVEeN2rJ0QL8aYkVlalFuXHF5XmpBYfYpTmYFES5+XTSosWEkhPLEnNTk0tSC2CyTJx cEo1MKaI8gmLV4vxO5REzlppmGbLab3vTW99flNzBJ8I3wfXmLjP2T3uuiLpqpscg+Wvbtr+ KS/hzcRQM9NUhvQZK0XUt/Rf5+lQKFrLebVMPSPP66nqxnNLHz2/OI+vZ520+8zXi575aLRv Lf72MFY46NvaD8V8Sz4GrTK0OrPy2qGe5xOdVy9aosRSnJFoqMVcVJwIAGh2esi0AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHJMWRmVeSWpSXmKPExsVy+t/xy7pL/SdGG7ROkLbYOGM9q8X1L89Z Lc6f38Bu8bHnHqvFjPP7mCzWHrnLbtH+9CWzA7vHplWdbB59W1YxenzeJBfAHMVlk5Kak1mW WqRvl8CVcefXc9aCO1wVjTt7WBsYJ3N2MXJySAiYSMw7eIqli5GLQ0hgCaNE16H/TBBOE5PE y5UrmECq2AQMJbredrGB2CICDhKfP71mBCliFnjMKHFu8QZWkISwQIxEy8dnzCA2i4CqxOVZ V8DivAI2EjNe/WKGWCcvsXrDATCbU8BW4va+VywgthBQzYXeU6wTGHkWMDKsYhRJLS3OTc8t NtIrTswtLs1L10vOz93ECAyVbcd+btnB2PUu+BCjAAejEg+vhenEaCHWxLLiytxDjBIczEoi vO7VE6KFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8543qIwSEkhPLEnNTk0tSC2CyTJxcEo1MF7+ n81/Q2Ev++Fnu0s+7vfzUZS7Lpn69sD0bhkGQ573Fx8XFF+KzrN+FRE+6fbnMCbOyyphCW+/ zxPafj7PpTzNhkdIq2KR9A9d9/7Z6x0Ffp+91mo07R/rgj89Mm4hOtLT1Ay/ZLTcPnZ53oOP bvEFd8rnKKU7T71w2vK94zXOd+yROZJTfJRYijMSDbWYi4oTAVRe+MoRAgAA X-CMS-MailID: 20180906160245eucas1p257fef879d3bb6127cb1afa6c357a953f X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180906160245eucas1p257fef879d3bb6127cb1afa6c357a953f References: <20180906160236.4326-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 SoC clock drivers should suspend after every other drivers in the system, which are using clocks and resume before them. The last stage for calling suspend device callbacks is NOIRQ stage and there exists driver, which use that state (dwmmc-exynos), so Exynos5433 clocks driver should also use it. During the same stage, clocks driver will be always suspended after its clients as a direct result of proper device probe order (deferred probe reorders the suspend call sequence). 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) };