Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp553105pxb; Thu, 21 Jan 2021 13:44:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyN701NRPmcrCyNmeMdNjmp6GFvW5cn1VPhJL4icCnvq8qFCBhuquiKR9pdtpjSWPwAk298 X-Received: by 2002:a17:906:1db2:: with SMTP id u18mr1000599ejh.440.1611265477288; Thu, 21 Jan 2021 13:44:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611265477; cv=none; d=google.com; s=arc-20160816; b=k2KmWrGF97iZm2UQYWTSeiPKZLzC6x5UImSYNyt2On7ZahfFsYIpWiVN0VcD20JwHz cgTbD+rwKG9Hvb8z2WOnvyvrdIzK5nWiKUAqmFBcpSTw+EDnZJW41FctkzhZph/Uvj8m PT6uXPLQSKHCTcVdQyYlyFUWN/C7HeS0FCziNNmG4wG+zJ+VoslgkrrDjxn7D2wKc4Yq bUBWnCWP25vYdmD0zVoI05YOfZX5RDaiCztoeJ/wSd2ER/v2XZFXtrGHusrkC/RWs1c2 qZPM7qO7g5AB/MX3p0HkHwWl+fdBkVlo5RivYefKmUT1798RblO1vbltZavNFGQJzcCw RIEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=YVqgssMQdQhf9y4JoWK0z3t3swC1/ivpAtAAVdvhll4=; b=P5PDpSAPQN2oou2RverViWRA2EOec2jU1MyPmM85L4u0/T9zi0OTL2y38nqoaV+TJJ faMF8v8+Ye2w9+Spsgd7jueijjBR6v9Z55zhHRlzu/dF77IG/3/KbCjFEiW5bVnydr7L m0JqUpFtJkUwn8t7qgUjz8nxukNZ2RIbUW25iVLM13mLf7L8O67aAakUK+57Xesi7v8P 31ba9yTCn3gu511iEuQb/N2VuuOLzK3YEUOJT9QuNU1x8EW6sZpFWjehWw69stlHzBq5 6kJ211xqPwWol+qppm1sarnsJi4qhZlvji+3X7wYTkL3T7lsP9bxNv4QWOdImRoTkLfl cCmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="s/o8iP3f"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si2592729edd.105.2021.01.21.13.44.12; Thu, 21 Jan 2021 13:44:37 -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=@gmail.com header.s=20161025 header.b="s/o8iP3f"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727096AbhAUVlx (ORCPT + 99 others); Thu, 21 Jan 2021 16:41:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbhAUVgu (ORCPT ); Thu, 21 Jan 2021 16:36:50 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5706C06174A; Thu, 21 Jan 2021 13:36:09 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id p13so4237643ljg.2; Thu, 21 Jan 2021 13:36:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YVqgssMQdQhf9y4JoWK0z3t3swC1/ivpAtAAVdvhll4=; b=s/o8iP3f3g2RyAf0tsVr2o+psJr/byantEoQeD3hFGfAIysCZTR59lyN5PZ3XKN1qW /xvkhqeg2suJDIb+8ByOo5mgTbwsHJH5qM1SAQCd2h+0QO8zG/L6pjwWlbcC6COTaOyl +KGRl3IcRVFS5tXYbGgL0MShb+stQyDjOK2zhlF5rxntfW5yFJVU1SVWo6IWbIxuhhrR 5k5QLe5ddFfQYycgWlOjNSP+BMjPQjmyhC5pMqVKxujTrP+F4NMckZfULHmo8HA8Szga Fl7DbYX+KTT+VSgn2b3v+T9CRDx9K7lk4APaIfekExKBDRBcP8vlYQyWUbFCm9yIkcCG EUdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YVqgssMQdQhf9y4JoWK0z3t3swC1/ivpAtAAVdvhll4=; b=HK68l1QWyfb4eUQ03GfUvyeXyLq2+wj2ttouSAv90VaZtZTHezM8zk3of0S38OABtW eR2rXZiRfTPHXIgesLH17jYIFo38J9qDCINmcNfw+11zD2PGqbksgy4Gzu+EZPwJJoIR 3YTwS2tFm8lhs6M9LupYsGUpV9Y5NixrfQ0eKGeKuE5GISLgxJUPalpi8KbXD5+5c9gD 15ifsVD0+zlODTJk5vG/CUmCUm6IldQJwUZnayW/enaKZ+gMpjiKW8Ba2dvfPwaPgvbG yv9qDFkpp2oKdrdvf/xAIHs9v1EZmx5kTVQVIicdcT5ypdNCbxKCxCfgaZnojO3vZVGB vAmg== X-Gm-Message-State: AOAM531E4R1c+kql3ocWVKU4qvawpVVVuw5gM+5+Rc8JbCLflSkOgvc8 QvDnRLe8AVc/uiMWXiSaGVN02Vnsil8= X-Received: by 2002:a05:651c:2049:: with SMTP id t9mr693818ljo.58.1611264968032; Thu, 21 Jan 2021 13:36:08 -0800 (PST) Received: from [192.168.2.145] (109-252-192-57.dynamic.spd-mgts.ru. [109.252.192.57]) by smtp.googlemail.com with ESMTPSA id p3sm652233lfu.271.2021.01.21.13.36.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jan 2021 13:36:07 -0800 (PST) Subject: Re: [PATCH 11/13] devfreq: tegra30: Migrate to dev_pm_opp_set_opp() To: Viresh Kumar , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Thierry Reding , Jonathan Hunter Cc: linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , Stephen Boyd , Nishanth Menon , Sibi Sankar , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org References: <3345fd49f7987d022f4f61edb6c44f230f7354c4.1611227342.git.viresh.kumar@linaro.org> From: Dmitry Osipenko Message-ID: <71451eb2-46b2-1ea0-efcc-0811568159a4@gmail.com> Date: Fri, 22 Jan 2021 00:36:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.2 MIME-Version: 1.0 In-Reply-To: <3345fd49f7987d022f4f61edb6c44f230f7354c4.1611227342.git.viresh.kumar@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 21.01.2021 14:17, Viresh Kumar пишет: > dev_pm_opp_set_bw() is getting removed and dev_pm_opp_set_opp() should > be used instead. Migrate to the new API. > > Signed-off-by: Viresh Kumar > --- > drivers/devfreq/tegra30-devfreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c > index 117cad7968ab..d2477d7d1f66 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; > This patch introduces a very serious change that needs to be fixed. Now dev_pm_opp_set_opp() changes both clock rate and bandwidth, this is unacceptable for this driver because it shall not touch the clock rate. I think dev_pm_opp_set_bw() can't be removed.