Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3433928pxb; Sun, 31 Jan 2021 16:09:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLbDFXFGwn6WqCxlHNNjwHwNyIm83HaWqNd/QoMvAJYLpO9Oht/Bu8gkzEA3sAjRbC6XmI X-Received: by 2002:a17:906:7d4f:: with SMTP id l15mr14737214ejp.95.1612138156370; Sun, 31 Jan 2021 16:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612138156; cv=none; d=google.com; s=arc-20160816; b=GxrRctSIVIi2aJeJjOentt1aDQMOOH5Lyjm3QfYYDS9FmnKIvURCIWc99o7ISFVe1q 7QtdAlKrBJ6A0ujXB+FOd2bhfgfGP8+cOZ89IWoZAtqwFExDP9f8t1ZQ/0p0D1/QIAOW D2vw7E+t2dmCZ9WPd1KIgyrvBnju18CxQ/3pZIEYbym6rOiIKk7SagjzXyhuZgq8Psyd xwE2zRoV7bC/7dbDhTPhDOb/BSntMtP8i7VhXZPKJnDnNSS2skWa3QyXeci+xCLgaXjA tQ/Sj0TMWjpihwsKJcrB4yqksvCjc8WgRIL6yKl1UJBpZVTJ6yLFc3Od1Q84o+Gw9b0U EbNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=bEwtsacQFPBPaJXsD/yffm3iWGCOhx2GmyJ+elyD9oY=; b=kdc+v6ieaeBhPRuh6ZVnDiyv+HmAioi6t020NlMBDGu3zmxSYhxj1/iyChf4xzrrtu 6YWmi4rtdvmjOC+IhQCfRnchxWSE6qx95R9mJOLDy3Upe39BrnDHSgloqfXprWG1BN7h BPP4kaU9dixF1FX7lDFBwAxy6WVG7IJnP3fJBOvwo7j30utDxRukybPB+LiuqEGxQvFy AWGNqP3MeFw5+Z0Xf+4/zubf0XAjGmukxCWzpy66A6VvurPVcHoGvMYMoagFqLTi12wg IfNqgA/aBUp49Nd/r5WQqqC/aNMUmdqIFNH+SQLhhho9fPBDLO6n7uyIzpxkCODM4ySj /Dzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=gX3uicwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h14si2656331eje.252.2021.01.31.16.08.37; Sun, 31 Jan 2021 16:09:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=gX3uicwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229840AbhBAAGe (ORCPT + 99 others); Sun, 31 Jan 2021 19:06:34 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:25644 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbhBAAGZ (ORCPT ); Sun, 31 Jan 2021 19:06:25 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20210201000540epoutp026b2bf07a1e99befd8400ae5e55b44133~fdup1wiau0485304853epoutp02V for ; Mon, 1 Feb 2021 00:05:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20210201000540epoutp026b2bf07a1e99befd8400ae5e55b44133~fdup1wiau0485304853epoutp02V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1612137941; bh=bEwtsacQFPBPaJXsD/yffm3iWGCOhx2GmyJ+elyD9oY=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=gX3uicwCn39Y6fX/tcvZubT+z+H9s1IGYf7gPv1n+KP2+D8w7FxhWo8TGl6OwWUuN BD3+i8BIQi5pK6Krqb4spIprsJvw345fMgqxLMY2M2iQyjH1FYHlF/Ebim1VGXTC6o i9n2HzpM6SWLazDIpJiEMLKlkYU2+EdY/0l0jrFw= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20210201000540epcas1p35cf72e21ca8d175c0c81ec512fd065cb~fdupIKCDd0326003260epcas1p3T; Mon, 1 Feb 2021 00:05:40 +0000 (GMT) Received: from epsmges1p5.samsung.com (unknown [182.195.40.156]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4DTSrd69Ljz4x9Q7; Mon, 1 Feb 2021 00:05:37 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id F1.3E.09577.1D547106; Mon, 1 Feb 2021 09:05:37 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20210201000536epcas1p4ffb3d916c2966ed55da5f880566a131f~fdul24ClZ3010030100epcas1p4x; Mon, 1 Feb 2021 00:05:36 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210201000536epsmtrp1223f3e761185e317fb119f88d791d6d2~fdul2ACcu1721017210epsmtrp12; Mon, 1 Feb 2021 00:05:36 +0000 (GMT) X-AuditID: b6c32a39-c13ff70000002569-f9-601745d1154d Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 16.7C.08745.0D547106; Mon, 1 Feb 2021 09:05:36 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210201000536epsmtip1628d7fc8c8692867e21a29fed034c07f~fdulXhb4p1187311873epsmtip1h; Mon, 1 Feb 2021 00:05:36 +0000 (GMT) Subject: Re: [PATCH V2 11/13] devfreq: tegra30: Migrate to dev_pm_opp_set_opp() To: Viresh Kumar , Dmitry Osipenko , MyungJoo Ham , Kyungmin Park , Thierry Reding , Jonathan Hunter Cc: linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , Stephen Boyd , Nishanth Menon , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org From: Chanwoo Choi Organization: Samsung Electronics Message-ID: <756b5af0-2c80-9c39-242c-d9552f03bcd6@samsung.com> Date: Mon, 1 Feb 2021 09:21:31 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKJsWRmVeSWpSXmKPExsWy7bCmnu5FV/EEgxd9hharPz5mtGiZtYjF 4mzTG3aLy7vmsFl87j3CaNH5ZRabxe3GFWwWb36cZbI4c/oSq8W/axtZLH7umsdi0XHkG7PF xq8eDrweO2fdZffYtKqTzePOtT1sHr3N79g8tlxtZ/Ho27KK0eP4je1MHp83yQVwRGXbZKQm pqQWKaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl5gCdrKRQlphTChQK SCwuVtK3synKLy1JVcjILy6xVUotSMkpsCzQK07MLS7NS9dLzs+1MjQwMDIFKkzIzrjwbCpb wU2+igUTrjA3MC7g6WLk5JAQMJFY//Q+axcjF4eQwA5GiY5VZ1lAEkICnxglrl9LgbA/M0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8eDrweO2fdZffYtKqTzePOtT1sHr3N79g8tlxtZ/Ho27KK0eP4je1MHp83yQVwRHHZpKTm ZJalFunbJXBlXHg2la3gJl/FgglXmBsYF/B0MXJySAiYSDRvu8UGYgsJ7GCU2Ls8GiIuKTHt 4lHmLkYOIFtY4vDhYoiSt4wSH1tqQGxhgUCJTc1rgEq4OEQE/jJKHLi4jRkkwSzwhlHi/a0I kISQQCuTxK+HfewgCTYBLYn9L26ALeMXUJS4+uMxI4jNK2AncX7aUjCbRUBFYtGxCywgtqhA mMTOJY+ZIGoEJU7OfAIW5xSIkzgz+TAjxDJ1iT/zLkEtFpe49WQ+E4QtL7H97RzmCYzCs5C0 z0LSMgtJyywkLQsYWVYxSqYWFOem5xYbFhjlpZbrFSfmFpfmpesl5+duYgRHqZbWDsY9qz7o HWJk4mA8xCjBwawkwntqkliCEG9KYmVValF+fFFpTmrxIUZpDhYlcd4LXSfjhQTSE0tSs1NT C1KLYLJMHJxSDUxn3Pxurphe3c0fHfyxInjTtW1vTu6a7RfLHrXn84PkJw9jmB+wLxA6Zy24 61lsydbb5WKqaTwzHs3Y55bmvGqh90y5RJ7Gv7MNf/w4uP980h4rnmQOr/slom+079dsm78m /3rd2ZZpsm9Vky1X/+MNLZCwneci6q/tfunSd0aLj3lBOy/3C9Y12G25uP7TqxbdXcvS96y4 xLkgty9289db2lr3JA6fMD4t5XbXjvNX3S5jbYsVu5i7LCc9Zy4umnz58eLJTo7+y3pUtm6P 6cryC2B9f/2MTt3Z/SuOPsoyPP3pp+PkWa2+nJsvcb+QdNzqqc4bV/Rr+zQh84pDCu+cr14I 4dp2I/QE6z+Xa56VSizFGYmGWsxFxYkABe3NbEEDAAA= X-CMS-MailID: 20210201000536epcas1p4ffb3d916c2966ed55da5f880566a131f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210127091008epcas1p204716c6e5b0157c5bae7237300609210 References: <3345fd49f7987d022f4f61edb6c44f230f7354c4.1611227342.git.viresh.kumar@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/27/21 6:10 PM, Viresh Kumar wrote: > dev_pm_opp_set_bw() is getting removed and dev_pm_opp_set_opp() should > be used instead. Migrate to the new API. > > We don't want the OPP core to manage the clk for this driver, migrate to > dev_pm_opp_of_add_table_noclk() to make sure dev_pm_opp_set_opp() > doesn't have any side effects. > > Signed-off-by: Viresh Kumar > --- > Dmitry, > > This is based over the patches sent here: > > https://protect2.fireeye.com/v1/url?k=72d88562-2d43bc78-72d90e2d-000babff24ad-e4764030101eaedc&q=1&e=a25b5db7-346b-47b2-9c0a-3945e579f389&u=https%3A%2F%2Flore.kernel.org%2Flkml%2F6c2160ff30a8f421563793020264cf9f533f293c.1611738228.git.viresh.kumar%40linaro.org%2F > > This should fix the problem you mentioned earlier. Will push this for > linux-next unless you have any issues with it. > > drivers/devfreq/tegra30-devfreq.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c > index 117cad7968ab..31f7dec5990b 100644 > --- a/drivers/devfreq/tegra30-devfreq.c > +++ b/drivers/devfreq/tegra30-devfreq.c > @@ -647,7 +647,7 @@ static int tegra_devfreq_target(struct device *dev, unsigned long *freq, > return PTR_ERR(opp); > } > > - ret = dev_pm_opp_set_bw(dev, opp); > + ret = dev_pm_opp_set_opp(dev, opp); > dev_pm_opp_put(opp); > > return ret; > @@ -849,7 +849,7 @@ static int tegra_devfreq_probe(struct platform_device *pdev) > return err; > } > > - err = dev_pm_opp_of_add_table(&pdev->dev); > + err = dev_pm_opp_of_add_table_noclk(&pdev->dev); > if (err) { > dev_err(&pdev->dev, "Failed to add OPP table: %d\n", err); > goto put_hw; > Acked-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics