Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp228656pxx; Thu, 29 Oct 2020 00:42:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdyHFkTk77gpPn73DyWukQ1VJ1A9odMEu23wb6Rmx18wQTvI03qpCXR5x5j0kOch55rGr9 X-Received: by 2002:a50:8a02:: with SMTP id i2mr2790849edi.40.1603957363712; Thu, 29 Oct 2020 00:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603957363; cv=none; d=google.com; s=arc-20160816; b=jqN88cvFrWCjQle+6pWL6T5wqgcimaoMUiRYD4Lk1TanUjbMRiqNRTk65lT1jD4Q1h QTogWY7AZ/Ye+YIztzCXiOa1+PbnssFFeG3egnwy+Y/nzjO/si+Ir1mn9biQzRphkskq qsCcavjKWxKyXS3xmsyZH/u9k1loohm/5ls27KOUoB4A+HM4bpXWvaboRDaJdPoBX8Zi Wpa74v8YcOgIePzq1lKwD/igaCXQzcqPaUblv9w8IMV5nSijEqn6T6KAJ8k9ag5mAruj 8Qr/eTIFLQrFNgnVaG7DotRj9Fu5DQtsQAs4ThMbPZRikDNjJa6Dr6VVw8dAP+wi3+/y de1A== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ywjXoX2kkK2KmqL6ZyGoB6Pybvnry+Rvqj9uaI5d5iE=; b=cxwEcfQJWpNcsOWndTnMRnB+qdOfA7R2TZLRscVP+KfSr19THIaBxoKoj/uOtg4PNF rTe9l8Cug4NImC3s2KEsV7C4O2ZKc/FlL8AF48QtWbsAL2QzVokXUcy7mhE4lEufcsGx ivHxIqum1li47y0Mnm+kOqNeTGnZ+dSXfjIxQ5icddllsapyKFFRJn6p3n1A+XkGxxYP w1ivqasc9SqWxNkNEJEjEbXTIOIcOBA06Q2eEA3V1GpCR6+CZBQ87yGr6gODBmlSSJai Oq1cmxlgzNlc4BSYw/CShs1LLRbrvS5UoYr41uPAk6RhG4R0TCgXxCKhK3F6bWUJM3/o a6DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X5W234U1; 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 d2si1483651ejm.548.2020.10.29.00.42.22; Thu, 29 Oct 2020 00:42:43 -0700 (PDT) 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=X5W234U1; 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 S2388182AbgJ1WfP (ORCPT + 99 others); Wed, 28 Oct 2020 18:35:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388039AbgJ1WfM (ORCPT ); Wed, 28 Oct 2020 18:35:12 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8FF7C0613CF for ; Wed, 28 Oct 2020 15:35:12 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id r186so723622pgr.0 for ; Wed, 28 Oct 2020 15:35:12 -0700 (PDT) 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:in-reply-to:user-agent; bh=ywjXoX2kkK2KmqL6ZyGoB6Pybvnry+Rvqj9uaI5d5iE=; b=X5W234U1YTYXSeJeyK2Vk+eLiUVBUfulNxLgtgDTC7Y2iq0ShIDFDyJL/pdwnwYUa+ OEYlEzLQjjCTHnrkgNNR7g00BW8ESFAEEQT1XcoJj6ZFN54o+wKgCxjD+O60PhuDQ7vD 84AXSoKF6QrULCiwA8LXd2DmMUV2GG7NtSjIJ6BviQWr4LdyVlTkrWrzwGw1XwH04BXw wUann1odVUWJfSTWmw+2UN7YWM3rbwimRI5KzkuOeG5fKlaBIz9oc3Vs4E2lZJFK3gLq v5fMgJHzOEzcx8IjzPNRfwrnMS/3QWCVvcyZ6Acqu806VBeEArIYp+nxMc7wfmvp6hZI ASUQ== 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=ywjXoX2kkK2KmqL6ZyGoB6Pybvnry+Rvqj9uaI5d5iE=; b=iRolIGekerjSD7YVGx9mnKP3j3x3+gwBJ3Ocf7hNe1qh5/7j9PMx6ex9UH3ynPSokC WQ5SdsItMXYEkPQG0Ep3LSM6WTeu7wsM50uoxdrZB2mfEFUNyjXn+WRe9I3DrsrqZ8Aq 40Tc9Y0yxPK2muPD4N5dMr5WCXM2J5+S3GWefFjH6csl527kAaQsMSXsarTIkN6H9aw2 x6oV+xfw/0JnRlnXZY5ax47gij4XjF+jmL5+F8QBOlKGa5h0unrpYIkYH7+wE/Hjr63W tNjjfis3gabbc1zb0Z4zm87UsT+uU3+hCZKdQsiaZj2xv916ClIYCKgtGpFD6XypFvkj lKBw== X-Gm-Message-State: AOAM531AIkgCHvH5pLMkCYHXHp2GE9KH69wy1N/OP+RUBQlquJWQFhhQ qfLX+5yq4rHZ8IO+xCyaj4rJUNXKOwBKfQ== X-Received: by 2002:a63:e444:: with SMTP id i4mr6715119pgk.304.1603896392305; Wed, 28 Oct 2020 07:46:32 -0700 (PDT) Received: from localhost ([122.181.54.133]) by smtp.gmail.com with ESMTPSA id y5sm3087840pfq.79.2020.10.28.07.46.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Oct 2020 07:46:31 -0700 (PDT) Date: Wed, 28 Oct 2020 20:16:28 +0530 From: Viresh Kumar To: Frank Lee Cc: Frank Lee , Rob Clark , Sean Paul , airlied@linux.ie, daniel@ffwll.ch, Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , jcrouse@codeaurora.org, eric@anholt.net, kholk11@gmail.com, emil.velikov@collabora.com, gustavoars@kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Linux Kernel Mailing List , Linux PM Subject: Re: [PATCH 2/3] opp: Add devres wrapper for dev_pm_opp_set_prop_name Message-ID: <20201028144628.qm2t2hbzmouqkciy@vireshk-i7> References: <20201012135517.19468-1-frank@allwinnertech.com> <20201012135517.19468-3-frank@allwinnertech.com> <20201028102942.zc5hgqpo2bfrn6in@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28-10-20, 19:02, Frank Lee wrote: > On Wed, Oct 28, 2020 at 6:29 PM Viresh Kumar wrote: > > > > On 12-10-20, 21:55, Frank Lee wrote: > > > From: Yangtao Li > > > > > > Add devres wrapper for dev_pm_opp_set_prop_name() to simplify driver > > > code. > > > > > > Signed-off-by: Yangtao Li > > > Signed-off-by: Yangtao Li > > > --- > > > drivers/opp/core.c | 39 +++++++++++++++++++++++++++++++++++++++ > > > include/linux/pm_opp.h | 6 ++++++ > > > 2 files changed, 45 insertions(+) > > > > On a second thought I am looking at dropping this one as you haven't > > added any users yet and I am afraid it will stay unused. > > Now it looks like that dev_pm_opp_set_prop_name() is used relatively less. > Maybe we can wait until a caller, and then pick up the patch. I am even wondering if we should be adding any of the devm_* helpers for now to be honest. Even for the other one we have only one user. Them major user of the OPP core is the CPU subsystem and it is never going to use these devm_* helpers as the CPU device doesn't get bound to a driver, it is rather a fake platform device which gets the cpufreq drivers probed. So the only users of these devm_* helpers is going to be non-CPU devices. Considering that we have only one user right now, it may be better to just fix it instead of adding any of the devm_* helpers. -- viresh