From patchwork Wed Nov 21 18:01:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10692893 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 C330B5A4 for ; Wed, 21 Nov 2018 18:02:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B10992C3E8 for ; Wed, 21 Nov 2018 18:02:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A49A72C406; Wed, 21 Nov 2018 18:02:19 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable 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 460BE2C41A for ; Wed, 21 Nov 2018 18:02:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732913AbeKVEhe (ORCPT ); Wed, 21 Nov 2018 23:37:34 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:60191 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732888AbeKVEhd (ORCPT ); Wed, 21 Nov 2018 23:37:33 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181121180210euoutp0242d68d0a8ec81016c577243371bbef47~pNaUTXbKS1795517955euoutp02H for ; Wed, 21 Nov 2018 18:02:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181121180210euoutp0242d68d0a8ec81016c577243371bbef47~pNaUTXbKS1795517955euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1542823330; bh=qggsqlasb+ZB/6Cp6CuX0fwsS0GDjW2gfsWln0LyFq4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stmSg/u8/MwLYZ94mB+HHc3qazwZKIi2j+7ePahihmVLuV/c4AamikfAFt/5boTrE +/IbR43wKwHcY1SYQ15Qk9kkQSY2OPsIyN6E44Le2TB54sJumuWIhabEBgaVMZbEOM ZwEC12PxIAZ2gvcwl+VtlBxpKOarmZubkV3gumYA= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181121180209eucas1p1d853ab615626002510a03881fe6e14f1~pNaTNlI7j1762417624eucas1p1g; Wed, 21 Nov 2018 18:02:09 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 7C.89.04294.0AD95FB5; Wed, 21 Nov 2018 18:02:08 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181121180208eucas1p11482a783ab1b1bceb8c9f6a1f50682c3~pNaSP_TVv3115931159eucas1p1Z; Wed, 21 Nov 2018 18:02:08 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181121180207eusmtrp161dc8d370b03e6455a15ba273a48071f~pNaSAW94I2594725947eusmtrp1r; Wed, 21 Nov 2018 18:02:07 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-ca-5bf59da057ad Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 7F.7C.04128.F9D95FB5; Wed, 21 Nov 2018 18:02:07 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181121180207eusmtip27d65ca12b1f53f0fe3942e0c93d2b410~pNaRI7Dnc1642316423eusmtip2Q; Wed, 21 Nov 2018 18:02:07 +0000 (GMT) From: Lukasz Luba To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Cc: tjakobi@math.uni-bielefeld.de, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, cw00.choi@samsung.com, rjw@rjwysocki.net, len.brown@intel.com, pavel@ucw.cz, gregkh@linuxfoundation.org, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, robh+dt@kernel.org, mark.rutland@arm.com, kgene@kernel.org, krzk@kernel.org, m.szyprowski@samsung.com, b.zolnierkie@samsung.com, Lukasz Luba Subject: [PATCH 6/6] arm: dts: exynos4: set opp-suspend for DMC and leftbus Date: Wed, 21 Nov 2018 19:01:41 +0100 Message-Id: <1542823301-23563-7-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542823301-23563-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0hTYRjHe8/d5eQ4pV40DAaBJmlF4AtKF/LDIQn8EESa5KqDhc5qJ68F zcprlpZdvDvzNufKXLpsaqGtLG15CdMsQzDS0sLczATTNo/Wt9/zf/7/53l4eRlc9pv0YE7G nuVVsYoYOSUhjC/me7ZoSmbDtw5dCkTtTT6oIb+eRI8afpFo0DZOojLzGxJdqqin0OsrSpQz Nomjnp4HNLJcnKLRsHoDKrzZhiHD2DsSvTUVU8h61QxQfs8TDN0zj9CoarAPQx9StBQa6Xpu n9HdT6LUNjON0uqmSTTV+4nYDTlji5Hk9KV6wBWp+wguN2cGcBWtXzHOoMukuKclepp7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i8tSVXIyC8usVWKNrQw0jO0tNAzMrHU MzQ2j7UyMlXSt7NJSc3JLEst0rdL0Mv4cHMte0E7b8XuS1PZGxhXcXUxcnJICJhIHJ44mamL kYtDSGApo8SDlcuYIRJiEpP2bWeHsIUl/lzrYoMo+sQosf7vFaAiDg42AT2JHasKQeIiAssZ Je7/nM0O4jALPGCW6Hi+iRWkW1jAW+J5wy0mEJtFQFXixfxPYHFeAS+Jtwt/skJskJO4ea4T bDMnUP3nVRMYQWwhoJor8xayTmDkW8DIsIpRJLW0ODc9t9hIrzgxt7g0L10vOT93EyMwYrcd +7llB2PXu+BDjAIcjEo8vBqRX6OFWBPLiitzDzFKcDArifB2RAGFeFMSK6tSi/Lji0pzUosP MZoCHTWRWUo0OR+YTPJK4g1NDc0tLA3Njc2NzSyUxHnPG1RGCQmkJ5akZqemFqQWwfQxcXBK NTCenSfwj03pQd+0j9nbGg9+VFv/8fbEidXvXk1/e8Vusj3L3NKOSckvQ9Y2XGFbujJ6l1JU j5mW5dozzA7ZTl7aJitmx+axtv3etXN60M/ejk+yVtlNuwqEb7cUPni+fqXGcduJ4Xs+inKG rH/PUGN9332+sHylW9DsUKnTR1iTK9ST+QJ37xVRYinOSDTUYi4qTgQAzHcrO+4CAAA= X-CMS-MailID: 20181121180208eucas1p11482a783ab1b1bceb8c9f6a1f50682c3 X-Msg-Generator: CA X-RootMTR: 20181121180208eucas1p11482a783ab1b1bceb8c9f6a1f50682c3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181121180208eucas1p11482a783ab1b1bceb8c9f6a1f50682c3 References: <1542823301-23563-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Mark the state for devfreq device while entring suspend/resume process. The patch draws on Tobias Jakobi's work posted ~2 years ago, who tried to solve issue with devfreq device's frequency during suspend/resume. During the discussion on LKML some corner cases and comments appeared related to the design. This patch address them keeping in mind suggestions from Chanwoo Choi. Suggested-by: Tobias Jakobi Suggested-by: Chanwoo Choi Signed-off-by: Lukasz Luba Reviewed-by: Chanwoo Choi --- arch/arm/boot/dts/exynos4210.dtsi | 2 ++ arch/arm/boot/dts/exynos4412.dtsi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index b6091c2..4429b72 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -298,6 +298,7 @@ opp-400000000 { opp-hz = /bits/ 64 <400000000>; opp-microvolt = <1150000>; + opp-suspend; }; }; @@ -367,6 +368,7 @@ }; opp-200000000 { opp-hz = /bits/ 64 <200000000>; + opp-suspend; }; }; }; diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi index 51f72f0..908c0c4 100644 --- a/arch/arm/boot/dts/exynos4412.dtsi +++ b/arch/arm/boot/dts/exynos4412.dtsi @@ -432,6 +432,7 @@ opp-400000000 { opp-hz = /bits/ 64 <400000000>; opp-microvolt = <1050000>; + opp-suspend; }; }; @@ -520,6 +521,7 @@ opp-200000000 { opp-hz = /bits/ 64 <200000000>; opp-microvolt = <1000000>; + opp-suspend; }; };