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: 145459 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp839911ljw; Wed, 29 Aug 2018 09:00:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYgYTAcHk88wmb/VKpjFIpa+mINcGwWW01djKXi2G7DWc4UsExrocStMzmEfUd7BSQKkXTT X-Received: by 2002:a63:60c1:: with SMTP id u184-v6mr6286973pgb.266.1535558428659; Wed, 29 Aug 2018 09:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535558428; cv=none; d=google.com; s=arc-20160816; b=Tq5UFgkR7ObK8pEoJGSQfdG+vKeieQw3ZbJz0LeWq90IRTXkw/2dFnBm9j00msKVYH 8ehy0Iw8iUPT7fP2lceH6WRzrwcYhN2IfZoXVaT03+9YO8a9YNruo79fneGRhV595MqY LtT0TovwVEAZw5GcMnw/T31H2O2ZloeV+jt+MOjoye6r5tibH9eOKR3APJHt2ZpBlbt4 qwGiqQKvhZKwaaI5LRcUlMQ7wqfCZy4hFfo9q0sLtQQyGNL2Xxa4vwq/yhpFGm3KYgat G4m7KhqO+yU8bv9chm9I+lkfNRcMtDhF3tmd4Hyt7/dM4lGKFpAS/iMMfboJmw2o4ef7 iZ5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=jZPAC1WiWBWi+5yxClSyjoxbJunAPmG7HmdqruU2FlA=; b=SK1QRYoDjixL++ullgBTQyD3iHHAnMaZBaB2MkbgXXW6FJb4wwrrJXYp1HBBw5Fdvk g+SshU49AI1x3qg1FqOSk3gKsCGU34THjJsUcL79ozngrsGWWkP9af1woGEi+7s6oj5/ VPPAXunQVXXYbJTz/HnWgHL78PDG4nMr53qIdXc/bRA21EWS37G4lubo4BaTzjNZ1JM/ 5a0lPITE7m+KVKBK3bvm6Yu73VdNKryChSDBYirGxnBPIuTwZtK01NhXRds3D2grskFG sciVvDb1hjbJE7k4UPyfgC7/pfJvPnxyv7dJuVWNw4z0Crs9YuOO/GrxHIpLhQOQ2Ygu gdcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=R+j4puQJ; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2-v6si4261040pgk.330.2018.08.29.09.00.28; Wed, 29 Aug 2018 09:00:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=R+j4puQJ; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729166AbeH2T6C (ORCPT + 3 others); 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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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 --- drivers/clk/samsung/clk-exynos5433.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski 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) };