Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2962420pxb; Sun, 8 Nov 2020 21:04:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzErKHnxad3YNqReyDkGBXIwO+3nX757AVhW83+9PchHzobqa06WLwfeCZvLrCbYfLBTBe3 X-Received: by 2002:a50:ab5e:: with SMTP id t30mr13736355edc.314.1604898286669; Sun, 08 Nov 2020 21:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604898286; cv=none; d=google.com; s=arc-20160816; b=DDobfknnGzxae/5Tp79rksRZA9lA0QVYRbWgHpg0jEdg2uz1ZLW0etQp2HqQJRXbbm v0ux5uiVlxiC5lEOT8Vmwyl9kAAfTrgnhr+YZ7f+0BhoLEC0kYR4cUPIbm0nPDQ01xvg o14aW74RvxHrcOV+nrRzNSxIUoBq5Xo7zAhYFhYDxXJ2pt9dhyzjXaZA4xPO1+Fn+SY/ /qTFeSD1ujmXG4f6kMvYpWXkVMoUBaJICNhxCIuiL3m3ZJEE23EQCtVQ+E8m3oroo5Jv /clu4Ul8bVZZmvaIoiPah9CXasjwQY1drXNHqR330OPaaZN36L3erlgSRdS0zhdreRXK kgxQ== 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=pqRYwsgE80dyuksaxFD472eZJVu82XkbBKetRcMgwkU=; b=ahfTDX7aZiqeEqObSUBkBj3/ar3iYMNhzO9n1G+GNWiGhllGrbwqmaWW+gT6iUnjwb E0RU2OZcgtDTxuuiLYLDzGunQ6dcMk2xRinuUQyTnb2AlBneK8TDIIpK686/IP2XW5R3 00CRJJcUv8JdDJ0+NNG3hSOL4wN+sfMfBO15SUKfdDpmsINsETN6z0BCSEQ2rgGtnoc0 ba3NNDU6jugGdxupjGZ8jvGcavBKjq0OzKF5sv/tJ36uWOK9j9tl3lXC01LS9P0vHRG7 QSC5nYVO6yV4O3e9rddR/De6KgneJpDXjPsgoGTkf7GEqP7ECwec+RBRQ0dt7CdpfwBr xPrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jEZAcCQJ; 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 r29si6285134edc.378.2020.11.08.21.04.23; Sun, 08 Nov 2020 21:04:46 -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=jEZAcCQJ; 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 S1729413AbgKIFAQ (ORCPT + 99 others); Mon, 9 Nov 2020 00:00:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729122AbgKIFAO (ORCPT ); Mon, 9 Nov 2020 00:00:14 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE529C0617A7 for ; Sun, 8 Nov 2020 21:00:14 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id u2so4124665pls.10 for ; Sun, 08 Nov 2020 21:00:14 -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=pqRYwsgE80dyuksaxFD472eZJVu82XkbBKetRcMgwkU=; b=jEZAcCQJcoNyrqtopd159IVehbQnFdrCz6Gv6znnBL+oQ9Lbu4SwHrg2soadRKeK2K tHih4WST3i/TCcj6zG3NcC99f5l/4cWK9Hfln+BVXXbkrR1PnWTasCM5zfT/TMCZDGt9 4y9fQy768qLLnTE3MNoBwJpSS+n1y2hy4CEdK5c9TZgDv/CsZCyWoBuiaAscEi6XOXaz fFRrm9tIKwCRdg8pkO9cL1mnHke7AsuFQHSxVtVK1lOFWXAcbU0rrIszlYFyBsfjnS5J 5MYwsJUwjmTVqE/xB66miJ9Smg7Qnite7DZudEoTQOg9GTVBnz2CKxeWfhRk9Fxccles G1MA== 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=pqRYwsgE80dyuksaxFD472eZJVu82XkbBKetRcMgwkU=; b=REWGIedIf7aeMUB8Qp9KHbm+9EAHSukzvL+RllzOK0kwm3ASfL/6XRo6OKYn3lYJVg Q9i7aB9MY6N1yAQYvTyDTcZG09VAvszrUN/CifT8hrfB7ZECY4RSTJ2aMuPYaf7hJcAj Sy0gcQR5WuINqoQGJWB7ffMkcfxv995hhdy2mhDEryd/HvHSn98I05vG/zz8EO3AHuDy 5gKkfm49yxw4/aimXRizeS5BMwZvEYPcJ0Ckco4cxKl5ICPr9nPFDc4nwMhiW0VTo6VY g98oU7uCcQlq5wmnVleYy35UFBg2xdZHQ8rLYkQiAkODdya2LNlwCCMW+XfYJD1s/EWG VT8g== X-Gm-Message-State: AOAM5311WmUDV8mDjo4eMbwxVTsTdzL09eP71PMnaStnTTJ0jJS3tead BheB3FxEaYXTg06zTeVfwmbvlg== X-Received: by 2002:a17:902:a612:b029:d6:6ae:4d47 with SMTP id u18-20020a170902a612b02900d606ae4d47mr10993684plq.50.1604898014065; Sun, 08 Nov 2020 21:00:14 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id gx24sm3171830pjb.38.2020.11.08.21.00.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Nov 2020 21:00:12 -0800 (PST) Date: Mon, 9 Nov 2020 10:30:10 +0530 From: Viresh Kumar To: Frank Lee Cc: Dmitry Osipenko , 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: <20201109050010.g47zojh6wafvwqva@vireshk-i7> References: <20201104234427.26477-1-digetx@gmail.com> <20201104234427.26477-18-digetx@gmail.com> <6fa54ce6-d5ae-d04f-7c77-b62c148d92b7@gmail.com> <20201106061513.uyys7njcqcdlah67@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-11-20, 21:41, Frank Lee wrote: > On Fri, Nov 6, 2020 at 9:18 PM Dmitry Osipenko wrote: > > > > 06.11.2020 09:15, Viresh Kumar пишет: > > > Setting regulators for count as 0 doesn't sound good to me. > > > > > > But, I understand that you don't want to have that if (have_regulator) > > > check, and it is a fair request. What I will instead do is, allow all > > > dev_pm_opp_put*() API to start accepting a NULL pointer for the OPP > > > table and fail silently. And so you won't be required to have this > > > unwanted check. But you will be required to save the pointer returned > > > back by dev_pm_opp_set_regulators(), which is the right thing to do > > > anyways. > > > > Perhaps even a better variant could be to add a devm versions of the OPP > > API functions, then drivers won't need to care about storing the > > opp_table pointer if it's unused by drivers. > > I think so. The consumer may not be so concerned about the status of > these OPP tables. > If the driver needs to manage the release, it needs to add a pointer > to their driver global structure. > > Maybe it's worth having these devm interfaces for opp. Sure if there are enough users of this, I am all for it. I was fine with the patches you sent, just that there were not a lot of users of it and so I pushed them back. If we find that we have more users of it now, we can surely get that back. -- viresh