Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751554AbdIUE6B (ORCPT ); Thu, 21 Sep 2017 00:58:01 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:56177 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbdIUE56 (ORCPT ); Thu, 21 Sep 2017 00:57:58 -0400 X-AuditID: b6c32a46-f790d6d000003bf5-66-59c346d1e841 MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="UTF-8" Message-id: <59C346CF.6010105@samsung.com> Date: Thu, 21 Sep 2017 13:57:51 +0900 From: Chanwoo Choi Organization: Samsung Electronics User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: myungjoo.ham@samsung.com, kyungmin.park@samsung.com Cc: rafael.j.wysocki@intel.com, chanwoo@kernel.org, inki.dae@samsung.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Kukjin Kim , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 8/8] PM / devfreq: exynos-bus: Register cooling device In-reply-to: <1505954032-3327-9-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA02SaUwTURSFfZ3pdIpWx1r1Bo3gJP6ASG1rKaOIS5SmUVQS/4ho6gReKEqX dFrjFgVJFDAqLqgBghsqookILijg0mpwiaBWjYi2JhiDIjFK4hLXmQ5G/31z3rnz3jm5NKGt omLpfJcPe118AUvFkBeDCVzSQ2swy/C9W8ftfvaY5PZEykluV08fwXV2Nqi4+1veq7jGnqdK LnSlmuIGdtxE3MHOqwquu6iO4nrq+lWzh9qOtb5V2BrrSylbU+1m287z9cg20DghU7kMz3Bg Phd747Erx52b78pLYxcssc+1J1sMxiTjNC6FjXfxTpzGzsvITLLmF4gvY+PX8AV+UcrkBYGd MnOG1+334XiHW/Clsdl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M0PUa0k8aP7EBmKzCKhK3Jm9CCzOBhTf/+IGWJxfQFHi6o/HjCAzRQUi JLpPVIKERQTMJXYt/ckGMX8qk0T3VhEQW1jAV2Livp1sELsuM0r8mbgb7DZOAVeJzj0b2Scw CsxCcuoshFNnITl1ASPzKkbJ1ILi3PTcYqMCo7zUcr3ixNzi0rx0veT83E2MwIjYdlirfwfj 4yXxhxgFOBiVeHgnmByOFGJNLCuuzD3EKMHBrCTCO8ceKMSbklhZlVqUH19UmpNafIhRmoNF SZw3s29GpJBAemJJanZqakFqEUyWiYNTqoGRoa+P/bVlAvOfUPZ7mvH95SIT1wWwTd57fsEV sb+T1I/cs+kNFo8KdJXij+gwNZvX07pU5NPP2qdqgZ+qzF8pT7l4S0fsDMMO/Rnsyla6a5QX MHx7lfbrUot4wBUvpTju40K8PXV3JXsCu64+f6wW7bBvIs+2sPMvLgSGHXqwomFx0ZQvdycq sRRnJBpqMRcVJwIAGPLqLoQCAAA= X-CMS-MailID: 20170921045752epcas2p3a101625f286f6b97be74248bec15a242 X-Msg-Generator: CA X-Sender-IP: 182.195.42.143 X-Local-Sender: =?UTF-8?B?7LWc7LCs7JqwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?Q2hhbndvbyBDaG9pG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTZW5pb3IgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170921003356epcas1p34bf88ccd1b9630577a83f14f0c291b1d X-RootMTR: 20170921003356epcas1p34bf88ccd1b9630577a83f14f0c291b1d References: <1505954032-3327-1-git-send-email-cw00.choi@samsung.com> <1505954032-3327-9-git-send-email-cw00.choi@samsung.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2164 Lines: 74 Dear all, Please ignore this patch. It has some problem. I'll fix and resend this patch on v2. Chanwoo Choi Samsung Electronics On 2017년 09월 21일 09:33, Chanwoo Choi wrote: > This patch registers the Exynos Bus-Frequency scaling device > as a cooling device of thermal management. > > Signed-off-by: Chanwoo Choi > Cc: Kukjin Kim > Cc: Krzysztof Kozlowski > Cc: linux-samsung-soc@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- > drivers/devfreq/Kconfig | 1 + > drivers/devfreq/exynos-bus.c | 11 +++++++++++ > 2 files changed, 12 insertions(+) > > diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig > index 6a172d338f6d..eb8128e08b2c 100644 > --- a/drivers/devfreq/Kconfig > +++ b/drivers/devfreq/Kconfig > @@ -81,6 +81,7 @@ config ARM_EXYNOS_BUS_DEVFREQ > select DEVFREQ_GOV_SIMPLE_ONDEMAND > select DEVFREQ_GOV_PASSIVE > select DEVFREQ_EVENT_EXYNOS_PPMU > + select DEVFREQ_THERMAL > select PM_DEVFREQ_EVENT > select PM_OPP > help > diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c > index c25658b26598..200ca0d11834 100644 > --- a/drivers/devfreq/exynos-bus.c > +++ b/drivers/devfreq/exynos-bus.c > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -41,6 +42,8 @@ struct exynos_bus { > struct clk *clk; > unsigned int voltage_tolerance; > unsigned int ratio; > + > + struct thermal_cooling_device *cdev; > }; > > /* > @@ -468,6 +471,14 @@ static int exynos_bus_probe(struct platform_device *pdev) > goto err; > } > > + /* Register devfreq cooling device */ > + bus->cdev = of_devfreq_cooling_register(np, bus->devfreq); > + if (IS_ERR(bus->cdev) < 0) { > + dev_err(dev, "failed to register cooling device\n"); > + ret = PTR_ERR(bus->cdev); > + goto err; > + } > + > goto out; > passive: > /* Initialize the struct profile and governor data for passive device */ >