Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp520423pxb; Wed, 27 Jan 2021 13:45:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwW2tQkRmZDxoW825zW79W6NyAH+WlVh8Ynlx5VMANDX70TYNRKejCDmaajcxzf1W2ABSvA X-Received: by 2002:aa7:de8f:: with SMTP id j15mr11220808edv.268.1611783900032; Wed, 27 Jan 2021 13:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611783900; cv=none; d=google.com; s=arc-20160816; b=kDCIGGxIjWN/P6eaZ9WrGjV0XpnIgH0Fvadz0koOIm8L2700Nrc9ipyp1A8t3DWHxY U0NW9yzd3jlSP670ISLGFwa6uBaaiuZXCe2YQgC4223PF2m3sFxRfMmV1h/FxXUqTVNT hm0WCiw4eqiQY1cZOrQEAi/6orO7ZV79DT5jbCLqP8iSoL1TpxrqSSi9yxFlp9b16eUE mfbsj0jQTt04S3YuXp80RAcogTqsH+26L+qYnZK5JCJ7bc8v7+roSru7zoMkV7qjiNLD 6DZVrwVvFcvDA8tInDz5k9nV/d8AZsecJVNgUCkpnfJxJd2Dlol7QSttbP2tity3y7ug VwxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rRKTArZOg1KrGjFi8d6fGv/HZF1EOkxq/275M+KtPoM=; b=xh2O+wYFMBBWhx8WOfClWuImYSV1PSw3Gj0qep0+OOrF+GnFKSkueOBJia99oSYPWn inWlXO629/ZYYZUkg41wM9YX39GDlGOrJPaitcSysA2Rq1ko6Z5UuCklVbkmZLUAVEVN 9F4iasPvCfZZQSSNk/t7hLkMRzKe+2is2BmL0WAIZm8Knd005fkbQitCACQFS9UaIVWd BNa+5jvfn+L2oEkLDG5x93tq9jT40t5GOzdb1halKbICuDYc+AkrX9ThtPvdYMJnxJsi u10x48BjiD/v+IwizWGBgsO9CXsC2QQf8oM5z+nZfPv1m/N6/CdVdiD59v9CRKx9MSdd /ggw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uwi3vAvN; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si1654398edh.31.2021.01.27.13.44.35; Wed, 27 Jan 2021 13:45:00 -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=@linaro.org header.s=google header.b=Uwi3vAvN; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235061AbhA0JQW (ORCPT + 99 others); Wed, 27 Jan 2021 04:16:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235029AbhA0JKr (ORCPT ); Wed, 27 Jan 2021 04:10:47 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0808FC061788 for ; Wed, 27 Jan 2021 01:10:05 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id o16so1149348pgg.5 for ; Wed, 27 Jan 2021 01:10:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rRKTArZOg1KrGjFi8d6fGv/HZF1EOkxq/275M+KtPoM=; b=Uwi3vAvNi1s+fF28WE+kMRQKlLALPib/vLCh98PitSRYo0RLK7BJNXcZJY8kJfdfCh QjPJy/jOQUcOTSfmLC6YooQySA/r8sREjF1KpI3tE578WpmdEf8+mpMrlWzPcWZEMQlw ptgUiPaZ1OQ3Pv9jjp/E5Gl3S1o7exI3S8p/HVlwxOPrCgS9qCuCrAWZ3TLLjKL3oScy h1Sb8WbTzWSzfIv0X6HOXnjoB6I6Btf1Pw24B7aUgx60k/1+jxsPK9luftsez9AZyVhm JM3bhBiTpL1BWmN1LpNlu8Ribeqp5zezKYgK26eKERrW5NIWZ1OwT6vtgwmOWZxlmERM HtcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rRKTArZOg1KrGjFi8d6fGv/HZF1EOkxq/275M+KtPoM=; b=raF1Ao/QigJCL0OvYO3U7uGn67tbfGBws5djh9m6CZAGsWqZ1O6nb5o3r2eMKtCOMs 5BIJMr7IdpJt6ZJN0P96qoGeh6FI9sftHjvfLdg86B6R0aayaO83N7Y6pPklMgjd8fY+ R4/OdEbLVeDfFD3hEdJH8C+lno9+a2KP/trsURyhywJ95V2FJuN9LTtTaLsYh6+MeL1E mqHatcw7uGijQZU8juLSxMRtGgZ6Y4Z2+Mg5+j2pYBAC4jhEfeY0BGDayNFcAkn88Yqi RwUTrg2F5yr626n87R+F1AsXcOM6Wo4AawK9f+NFraHxWnesKvXA3ldBxVXQM5EhI66w zTxg== X-Gm-Message-State: AOAM533giHmZDIH3fIWF3iltQRa+QTmGuRjmBSKhi5GHQrZyLXEUZhY4 XRfG4ZhsNcubR8y9uziZHa1Ujg== X-Received: by 2002:a62:144c:0:b029:1c0:d62d:e16e with SMTP id 73-20020a62144c0000b02901c0d62de16emr9544172pfu.25.1611738605363; Wed, 27 Jan 2021 01:10:05 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id p64sm1574652pfb.201.2021.01.27.01.10.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2021 01:10:04 -0800 (PST) From: Viresh Kumar To: Dmitry Osipenko , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Thierry Reding , Jonathan Hunter Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , Stephen Boyd , Nishanth Menon , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 11/13] devfreq: tegra30: Migrate to dev_pm_opp_set_opp() Date: Wed, 27 Jan 2021 14:40:00 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af In-Reply-To: <3345fd49f7987d022f4f61edb6c44f230f7354c4.1611227342.git.viresh.kumar@linaro.org> References: <3345fd49f7987d022f4f61edb6c44f230f7354c4.1611227342.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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://lore.kernel.org/lkml/6c2160ff30a8f421563793020264cf9f533f293c.1611738228.git.viresh.kumar@linaro.org/ 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; -- 2.25.0.rc1.19.g042ed3e048af