Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2980505pxb; Sun, 8 Nov 2020 21:55:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDkr0N7u/u9+6/QfthdJ9z7hd2SiKbPO8sd6qoVKDp4VmHTNVc0pUz8xWICmbfEagV2Uks X-Received: by 2002:aa7:df81:: with SMTP id b1mr13420974edy.365.1604901309911; Sun, 08 Nov 2020 21:55:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604901309; cv=none; d=google.com; s=arc-20160816; b=gOds0HfmwBvN7kZPKYXJLmGE8FAezX8UtCqrvmcDNnH0IC5jRISEDBxnn/+E12a/Ou N4RQjn7pJDN7qUjkZRx1w4FFjD6skUooYU4SC8QbI5EveLhlxb83lgVOoetSEPkV6X6j H7Ee9EoLrKWnmMQuSYLBs1pcpK2ZpnagzKJCZ22VWJngp+H/s6ewafz7jgEvZ7ZG+21e HBrtGOuvpPW3uCvMLeg2uqYCkK9eHqvhANjcrZnMmHYM+6gZ5GV72npPa6vAyWRHjWSa T40qCdfc0/FKXmChZeJt0PftPwU9WPyLUPd0EBY6Ck+MEwkFy/lbmUBMBvsiPTzVnJS2 FA8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=I4CHDtUGbNIJQpM023wPiaWJqW6VgcrXTJggEv8wwSw=; b=uHIFQ9FuKdnqMx7C1U9OKtD7JNf1JxF+S7ZEBySLaQIgWEbu0ZPYo/EsZ+zcJNYFYI PPE4KXzSplC5SMqFj/NBubFFcvRWN2E27aymry0pHi5xvs11MbuuqppcUFOGh3xPA/WL rYsTeVsqZh+gol8oT5NyN0+OWGruV1L6wYhUyRrDloWIRRtjlt9rGr2sYF5erJqwZwKl W8G25601Xxnxl/e4n4Yl3DFjanmoHBvMrq96b3F/LBibdA6C9bug3CyMtmmOA1UkiDB1 UJ/25fcIlS0e0QSUffWGQRWlCtUKG+gsyK2iDQfC8rxs6LWDHiseSr3U5aehUX/LehCX QCYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qCNPstD8; 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 dp16si7229383ejc.635.2020.11.08.21.54.46; Sun, 08 Nov 2020 21:55:09 -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=qCNPstD8; 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 S1729391AbgKIFx1 (ORCPT + 99 others); Mon, 9 Nov 2020 00:53:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728951AbgKIFxZ (ORCPT ); Mon, 9 Nov 2020 00:53:25 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81FFDC0613CF for ; Sun, 8 Nov 2020 21:53:24 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id x13so7064157pfa.9 for ; Sun, 08 Nov 2020 21:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=I4CHDtUGbNIJQpM023wPiaWJqW6VgcrXTJggEv8wwSw=; b=qCNPstD8wk3f6WVndWAivRv5cGLOIzilHxs0sV7MkBI8GDXwzWkbmt+V1Ae9lrpsMJ B4t28mlabIok8WTUpK4tOZJhv14XX6QPx9rUN/5/7PjDOEIOF07vmO2pAN+fOFSCVQFs N9tTa3VjUXqiHFZpYHNhvX9c+lshFtkGG4kTSo9LVtvbWKYZTAF10/IyRus+uU55LRBE 4k68uNqq+fkS72Id3gBgsPo8GFhIcdXrrqMldXmeqgNgvMOl+qXZJXb1YbEiT/aa1Etq o30FSX7jLjx5MVrVA99VofHiE5IMFfg3o0pRw5sTKSTM5XBTSZbKnADSmkIOStFM24ld zguw== 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:content-transfer-encoding :in-reply-to:user-agent; bh=I4CHDtUGbNIJQpM023wPiaWJqW6VgcrXTJggEv8wwSw=; b=fGZ3g6HilCoBeL5KHNzHV2okC2HQNyiei7EZAg0AEZhggvtUm7hgxUpWem2xOUagTv RYyRfHUNrDYZVJDNYNVCqI4FerLtXWXHYv88IBU4QrAYdlUJizyuAiXivcJ8zrj+Acap U6bXDKra9+RE8L/2V49eTrKclwpTz3PWru9XGtdQA0D3Ht8BWkleiLs9uLeSTYaBvv0Q CkI26Vm26cDBIelqUYtc0wybMYEPBnoz6Dgco8L3lZSl5wS0QdEZG3YZk+xwogtrMaZ+ uGZ7hJ+JJXu0CBqRAoe17CqivszOG4zeOC4wUhBJu9k5Zei+CPojoVNgdxZHFftiSTFU PvqQ== X-Gm-Message-State: AOAM532bsqvwo99FCcYuT52dGEwq9a72t5UcN5Vd1gMV/0p7YfDtuxbj M+pUPxy56HcPm2pqj4LY8rtisA== X-Received: by 2002:a17:90a:e110:: with SMTP id c16mr11572525pjz.84.1604901203964; Sun, 08 Nov 2020 21:53:23 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id 12sm3592369pjn.19.2020.11.08.21.53.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Nov 2020 21:53:22 -0800 (PST) Date: Mon, 9 Nov 2020 11:23:20 +0530 From: Viresh Kumar To: Dmitry Osipenko Cc: Frank Lee , Thierry Reding , Jonathan Hunter , Alan Stern , Peter Chen , Mark Brown , Liam Girdwood , Adrian Hunter , Krzysztof Kozlowski , Greg Kroah-Hartman , Lee Jones , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Ulf Hansson , Mauro Carvalho Chehab , Rob Herring , Marek Szyprowski , Peter Geis , Nicolas Chauvet , driver-dev , linux-pwm@vger.kernel.org, linux-samsung-soc , DTML , linux-usb@vger.kernel.org, "open list:SECURE DIGITAL HO..." , Linux Kernel Mailing List , dri-devel , linux-tegra@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH v1 17/30] mmc: sdhci-tegra: Support OPP and core voltage scaling Message-ID: <20201109055320.5y5gf2whwast2mi4@vireshk-i7> References: <6fa54ce6-d5ae-d04f-7c77-b62c148d92b7@gmail.com> <20201106061513.uyys7njcqcdlah67@vireshk-i7> <20201109050010.g47zojh6wafvwqva@vireshk-i7> <20201109051014.oa6bt4g3ctm2hnuy@vireshk-i7> <4476fed9-a356-b7f1-32ee-935343e23038@gmail.com> <20201109053546.xupmmsx5qccn46tr@vireshk-i7> <33a7ad95-a8cf-7b88-0f78-09086c1a4adf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <33a7ad95-a8cf-7b88-0f78-09086c1a4adf@gmail.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09-11-20, 08:44, Dmitry Osipenko wrote: > 09.11.2020 08:35, Viresh Kumar пишет: > > On 09-11-20, 08:19, Dmitry Osipenko wrote: > >> Thanks, I made it in a different way by simply adding helpers to the > >> pm_opp.h which use devm_add_action_or_reset(). This doesn't require to > >> add new kernel symbols. > > > > I will prefer to add it in core.c itself, and yes > > devm_add_action_or_reset() looks better. But I am still not sure for > > which helpers do we need the devm_*() variants, as this is only useful > > for non-CPU devices. But if we have users that we can add right now, > > why not. > > All current non-CPU drivers (devfreq, mmc, memory, etc) can benefit from it. > > For Tegra drivers we need these variants: > > devm_pm_opp_set_supported_hw() > devm_pm_opp_set_regulators() [if we won't use GENPD] > devm_pm_opp_set_clkname() > devm_pm_opp_of_add_table() I tried to look earlier for the stuff already merged in and didn't find a lot of stuff where the devm_* could be used, maybe I missed some of it. Frank, would you like to refresh your series based on suggestions from Dmitry and make other drivers adapt to the new APIs ? -- viresh