Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp359693imu; Fri, 21 Dec 2018 00:00:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN7BY0GrjI/d2xfTbGFa+718wVxZ9mf0lq0KYIQ+lPIEot0RV+io4nuTWKCdv44e68lH08eL X-Received: by 2002:a63:1d1d:: with SMTP id d29mr1421944pgd.49.1545379221890; Fri, 21 Dec 2018 00:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545379221; cv=none; d=google.com; s=arc-20160816; b=ml+BcBw2q5Cxwofdg39X36Xa38btwzHgeHj4ijBKraPPOVKzFQ62oAAEc5vWaORmcC CcOPsn1rE7cILa+k8AbrPPXTSD1AknYK9Dj+zzkYUbdZyHSSh4SsAuZGLojbazLPa53N kfkUKGKGpyslMrXPa2C48zmefLl5dFYbLZdbou3xDddwG3DFF7KJd0AZkYZYciI/pNk+ wXewoPulsHrwIrjvp/NDwDA00SCYypLGII44aDkPKzd8TWeKG9zxEGTgllIohGjQes9P 3GWqOxC2F0F1ZLKwrw/CmqlmskKrBQZAKkPJnoANwBpdqzltDAl278vpQqhrJOaGwi6J Z4fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=7dtocj51qYu8hNBeOSL3dkVqRxypPh57FOVK2N4+jlk=; b=SGfQeNQL8/LyS8jGyB7kpB9/W8Jk9uXTBP0PZENPN0gWvVTU1dnLh1QNJcAaA6e9gk wKOFfpe1+CPWj/KlYuw/60fsqsDP3DY4yrx5QHJvxXXrD5VATdcNTdVF4RSiwK7rW+BR apbUfgy/z5MiMh9nQiga0uOsMxoIvfZGhM3qJ3WsTMXtLdLAtyt3/tfR8fDDC1VG2+uD HO/SRSlI4T5hvoeNMQB5jsUPmIBjA+oXC8kyx7ELWSLPhZUMPivPaH9JFJoVMPSA5HWP jqZ2eUx5WT65jzR5cnUSt4J5s3QVKwLYi1VKSjLy7H1OY33qi9ikcKLOH7jm9TAX4hEB GHPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NwKnrSXn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 e2si19696890pgs.94.2018.12.21.00.00.05; Fri, 21 Dec 2018 00:00:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=NwKnrSXn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S2388125AbeLUAdQ (ORCPT + 99 others); Thu, 20 Dec 2018 19:33:16 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:62082 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727790AbeLUAdP (ORCPT ); Thu, 20 Dec 2018 19:33:15 -0500 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20181221003311epoutp03a9285e969214b2b04d38591b749e5033~yMdAKdFOk1259012590epoutp03T for ; Fri, 21 Dec 2018 00:33:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20181221003311epoutp03a9285e969214b2b04d38591b749e5033~yMdAKdFOk1259012590epoutp03T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1545352391; bh=7dtocj51qYu8hNBeOSL3dkVqRxypPh57FOVK2N4+jlk=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=NwKnrSXnKhSGnB960JtCGO9MZBYfG7yTYJRbjCMl4ubalhTcSjVfH5/vxbvu6YYi8 JF91EVbcGSJP+gVCN7ZDjtpORePcOqlArss4kfoFecADob+DO7lLbA8KqYWGZIYWQN hHhXrt6EQ77VBZW6+w+eWLYWr5LA0wt+DohWI8tM= Received: from epsmges1p2.samsung.com (unknown [182.195.40.155]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20181221003306epcas1p3213e28f4c5fb4f5ae0e1497893af23af~yMc7Jj7lH0603906039epcas1p32; Fri, 21 Dec 2018 00:33:06 +0000 (GMT) X-AuditID: b6c32a36-d19ff70000000fd9-67-5c1c34c27094 Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id F4.11.04057.2C43C1C5; Fri, 21 Dec 2018 09:33:06 +0900 (KST) Mime-Version: 1.0 Subject: RE: Re: [PATCH v3 4/5] drivers: power: suspend: call devfreq suspend/resume Reply-To: myungjoo.ham@samsung.com From: MyungJoo Ham To: Lukasz Luba , "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" , Kyungmin Park , Chanwoo Choi , "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" , Marek Szyprowski , Bartlomiej Zolnierkiewicz X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20181221003305epcms1p756d76191d5f233c6e3238400d233b3c6@epcms1p7> Date: Fri, 21 Dec 2018 09:33:05 +0900 X-CMS-MailID: 20181221003305epcms1p756d76191d5f233c6e3238400d233b3c6 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" CMS-TYPE: 101P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkl+LIzCtJLcpLzFFi42LZdlhTT/eQiUyMQecTfouDWzUtNs5Yz2qx feM3VovrX56zWsw/co7VonnxejaLM925Fv2PXzNbnD+/gd3ibNMbdotbDTIWs6bsZbLY9Pga q8XlXXPYLD73HmG0mHF+H5PF2iN32S2WXr/IZHH31FGg9tOXWC1a9x5ht2hb/YHV4s2FeywO 4h7bdm9j9Vgzbw2jx+yGiyweE/o/MXos3vOSyWPTqk42j/1z17B7bF5S7/HvGLvHwXd7mDy2 XG1n8ejbsorRY8Xq7+wenzfJBfBFZdtkpCampBYppOYl56dk5qXbKnkHxzvHm5oZGOoaWlqY KynkJeam2iq5+AToumXmAL2vpFCWmFMKFApILC5W0rezKcovLUlVyMgvLrFVSi1IySmwLNAr TswtLs1L10vOz7UyNDAwMgUqTMjOOPewnaVgLXfFka//WRoY93N2MXJwSAiYSMw/atHFyMUh JLCDUaJt4l1mkDivgKDE3x3CXYycHMICYRL3Th5hBLGFBJQkGm7uY4aI60t0PNgGFmcT0JXY uuEuC8gcEYFGZokle76wgjjMApPZJGY9a2ADqZIQ4JWY0f6UBcKWlti+fCtYN6eAu0TH11NQ cVGJm6vfssPY74/NZ4SwRSRa751lhrAFJR783A0Vl5J48nYhVH21xKOei8wgiyUEWhglVs3c xgSR0Jc4M/ck2BG8Ar4SF48+B7NZBFQlHs3tZ4WEhIvEzMtpIGFmAXmJ7W/ngAOCWUBTYv0u fYgwn8S7rz2sMK/smPcEarqaxKHdS6BOkJE4PX0h1JkeEk/vPWCGBO4EJok7Fz6yT2CUn4UI 31lIts1C2LaAkXkVo1hqQXFuemqxYYERcoxuYgQnfy2zHYyLzvkcYhTgYFTi4b2wXTpGiDWx rLgy9xCjBAezkghvKYtMjBBvSmJlVWpRfnxRaU5q8SFGU6CfJzJLiSbnAzNTXkm8oamRsbGx hYmhmamhoZI47xOpudFCAumJJanZqakFqUUwfUwcnFINjF6/v5fPVl9r/TM5bfcap615cTP3 5UX+ON/DK6DdraPo/Yx/ldzlbWxONZejzu6bxnXXfH/K2gKZpzd5+Tpizr/Zbjs7WbwrT2zy S8bAe3ZX/xk2P7z7pES4fs6MGdc9Wd0eKHiETrsWlLVaSZQnokxzgjyvSSXrujz9zdsPXe4+ dPy1vfONciWW4oxEQy3mouJEAPoMnEIUBAAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20181205110623eucas1p120f9d8b38822bf856a5b7d427d00e49f References: <1544007956-28889-1-git-send-email-l.luba@partner.samsung.com> <1544007956-28889-5-git-send-email-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >On 2018-12-05 12:05, Lukasz Luba wrote: >> Devfreq framework supports suspend of its devices. >> Call the the devfreq interface and allow devfreq devices preserve/restore >> their states during suspend/resume. >> >> Suggested-by: Tobias Jakobi >> Reviewed-by: Chanwoo Choi >> Signed-off-by: Lukasz Luba This looks all good to me. Acked-by: MyungJoo Ham >> --- >> drivers/base/power/main.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c >> index a690fd4..0992e67 100644 >> --- a/drivers/base/power/main.c >> +++ b/drivers/base/power/main.c >> @@ -32,6 +32,7 @@ >> #include >> #include >> #include >> +#include >> #include >> >> #include "../base.h" >> @@ -1078,6 +1079,7 @@ void dpm_resume(pm_message_t state) >> dpm_show_time(starttime, state, 0, NULL); >> >> cpufreq_resume(); >> + devfreq_resume(); >> trace_suspend_resume(TPS("dpm_resume"), state.event, false); >> } >> >> @@ -1852,6 +1854,7 @@ int dpm_suspend(pm_message_t state) >> trace_suspend_resume(TPS("dpm_suspend"), state.event, true); >> might_sleep(); >> >> + devfreq_suspend(); >> cpufreq_suspend(); >> >> mutex_lock(&dpm_list_mtx);