Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5576136ybl; Tue, 14 Jan 2020 11:14:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwOvOTUHe8E28PC7lmdh9/casvlFHJm3cHgMW7JxNj6Ok8tmqK1+Na8Ks6BVQoYYdL+MsAj X-Received: by 2002:aca:48cd:: with SMTP id v196mr18794524oia.102.1579029297663; Tue, 14 Jan 2020 11:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579029297; cv=none; d=google.com; s=arc-20160816; b=I8Ph8CP/wYUw9pY/Kdmuyrgl4zCecLNgG9hl7bxXPsaDGTJkH+jjbK8uhJtHruni8A pCemu23ta9j8Ts7kjz82PHVt0dqgPmH/So3VlLR4RlIqdqwvThqXzlHKSUYaM1fRk2eI KlE+Q7hR9DnB83PtUQ11HLydlN8lPzoQ3YbAFBfbRcILv66gCs1lEcoy6o8v0IH1X1B6 y1nCayb1XMo3oYro44ToP/mbS1NBgoYJD3qXPT5KLJHNtbrLPf4NMdUUjBWSG6SgRWDZ 2K2x4nv7jAyz3lb776+vqnc8kSKszlzE/0VGVQtfwPwewUiaSzPAj9l6t/Lw5S5D8E2x bSyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Kh1Ge+Ojyq1Hkaf57+ksFQlpw/tvYEo5VWAEqDe26e0=; b=CrfUhuSRPPT503Z7/z/Qet8t2nFV36C4dP/GUkV9cRiyPpHq8prxVOa9Z9IhTJ8F0D bpQdwCK5N9GIqw69I9RszoIxNleZG29Cyj8udezexlMWtWmF0YD5LA+pYDq8Tl5phTKH 7DV3pDuh10wNGCUJp+tYeszfGnuhMEbzfNjOcfYU5LaNBQ9F3JbUpJStxYKvn7hgfO17 Ypl8BrI7JYFrBgutDYpkrtxTXjhzWdh7s+zZbVSwBKH6AONHt8/ZZJkEIo72yPLszzxZ 9OEmQpuGx6bIfzwRhh4RTw/w9ieCbKz0sYaAtc/qQABCm++RJHy0V0MowBtY0+1re8wJ ZQ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IoV0u8G3; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u16si8948004otq.92.2020.01.14.11.14.46; Tue, 14 Jan 2020 11:14:57 -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=@chromium.org header.s=google header.b=IoV0u8G3; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728689AbgANTN4 (ORCPT + 99 others); Tue, 14 Jan 2020 14:13:56 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:37430 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbgANTNz (ORCPT ); Tue, 14 Jan 2020 14:13:55 -0500 Received: by mail-pj1-f67.google.com with SMTP id m13so6306594pjb.2 for ; Tue, 14 Jan 2020 11:13:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Kh1Ge+Ojyq1Hkaf57+ksFQlpw/tvYEo5VWAEqDe26e0=; b=IoV0u8G3OE4qe/OlOUrmQtTvkn0Ck8iGTgGitUdy4pm3zeqyty3RtPcor2vp/ZM5UM bh3Y3Dm0Rl8FtYVdIGq1TmyzYHROP92D3Yb8/avJnDjSPv2yCHiRXrJt9rFiOnhFOgfx J1uuzsbaA6SZJOUNcD3OseGl4+stFJaViEmj8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Kh1Ge+Ojyq1Hkaf57+ksFQlpw/tvYEo5VWAEqDe26e0=; b=c+XGeaya0IbH4vJPIgHBHNl9D6TCNvOVlwjptqXeVIawaySdxUq0o9HhkeoaysvdCK yEL34Vxb5Yo7ZHcP/WXdO8tmExtOLh+UBxSSNVmRyFjzr670+7AHA8xZlWdRhmLDypbT d1lT8avAYMFXzUV9aKrZte22ANKJNB8/1ge4e249FAEOxLQpCGQtTqI5VluJLPq03JD1 8G3PPbUAUMYMPI0h3W4MPlS5IwYbJVONreLnqpe777uexH4l6yeFZP4687AvFroQKts0 fj7RND2LpW8rGnyYd6Js+z0Ch7nQwXEQse4XwqC7XOyCZhL534iTjLMQIIsWsC5d57rD cFeA== X-Gm-Message-State: APjAAAURALyDrYjyoN+4wJuMoJ4A9ZYUEshbb700e0N85Pys0J8btcX6 wTNn1AIs2X6k+xoZF/USFUNt8w== X-Received: by 2002:a17:902:8c84:: with SMTP id t4mr21515599plo.101.1579029235167; Tue, 14 Jan 2020 11:13:55 -0800 (PST) Received: from localhost ([2620:15c:202:1:4fff:7a6b:a335:8fde]) by smtp.gmail.com with ESMTPSA id v4sm18628483pff.174.2020.01.14.11.13.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jan 2020 11:13:54 -0800 (PST) Date: Tue, 14 Jan 2020 11:13:53 -0800 From: Matthias Kaehlcke To: Chanwoo Choi Cc: Leonard Crestez , Chanwoo Choi , Viresh Kumar , MyungJoo Ham , Kyungmin Park , Zhang Rui , Daniel Lezcano , Amit Kucheria , "linux-kernel@vger.kernel.org" , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" Subject: Re: [PATCH 2/2] PM / devfreq: Use exclusively PM QoS to determine frequency limits Message-ID: <20200114191353.GL89495@google.com> References: <20200110094913.1.I146403d05b9ec82f48b807efd416a57f545b447a@changeid> <20200110094913.2.Ie8eacf976ce7a13e421592f5c1ab8dbdc537da5c@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 15, 2020 at 02:35:48AM +0900, Chanwoo Choi wrote: > On Wed, Jan 15, 2020 at 1:08 AM Leonard Crestez wrote: > > > > On 13.01.2020 09:24, Chanwoo Choi wrote: > > > Hi, > > > > > > Any device driver except for devfreq_cooling.c might > > > use dev_pm_opp_enable/disable interface. > > > So, don't need to remove the devfreq->scaling_max_freq > > > and devfreq->scaling_min_freq for supporting OPP interface. > > > > It seems that devfreq_cooling was the only upstream user of > > dev_pm_opp_enable and the remaining callers of dev_pm_opp_disable are > > probe-time checks. > > OPP interface has still dev_pm_opp_enable and dev_pm_opp_disable > function. As long as remains them, any device driver related to devfreq > could call them at some time. The devfreq supports the OPP interface, > not just for only devfreq_cooling. I would like to remove the disabled OPP handling since no devfreq device makes use of dev_pm_opp_enable/disable, but I fear you are right that we have to keep it as long as the API is available.