public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rain Yang <jiyu.yang@oss.nxp.com>
To: Boris Brezillon <boris.brezillon@collabora.com>
Cc: airlied@gmail.co, dri-devel@lists.freedesktop.org,
	imx@lists.linux.dev, jiyu.yang@oss.nxp.com,
	linux-kernel@vger.kernel.org, liviu.dudau@arm.com,
	maarten.lankhorst@linux.intel.com, marek.vasut@mailbox.org,
	mripard@kernel.org, simona@ffwll.ch, steven.price@arm.com,
	tzimmermann@suse.de
Subject: Re: [PATCH v1] drm/panthor: skip regulator setup if no such prop
Date: Sun, 28 Sep 2025 16:36:59 +0800	[thread overview]
Message-ID: <aNjzq_i0RLfovUGT@oss.nxp.com> (raw)
In-Reply-To: <20250926120311.33dc9fb1@fedora>

On Fri, Sep 26, 2025 at 12:03:11PM +0200, Boris Brezillon wrote:
>On Fri, 26 Sep 2025 17:07:22 +0800
>Rain Yang <jiyu.yang@oss.nxp.com> wrote:
>
>> From: Rain Yang <jiyu.yang@nxp.com>
>> 
>> The regulator is optional, skip the setup instead of returning an
>> error if it is not present
>
>AFAICT, it's not flagged optional in the DT bindings yet, so I'd prefer
>to have this change and the DT bindings update in the same patch series
>(both will go through the drm-misc tree anway).
>

thanks, Boris.
I will create a patch in dt-binding to make mali-supply required only applied to to rk3588

>> 
>> Signed-off-by: Rain Yang <jiyu.yang@nxp.com>
>> ---
>>  drivers/gpu/drm/panthor/panthor_devfreq.c | 3 +--
>>  1 file changed, 1 insertion(+), 2 deletions(-)
>> 
>> diff --git a/drivers/gpu/drm/panthor/panthor_devfreq.c b/drivers/gpu/drm/panthor/panthor_devfreq.c
>> index 3686515d368d..2df1d76d84a0 100644
>> --- a/drivers/gpu/drm/panthor/panthor_devfreq.c
>> +++ b/drivers/gpu/drm/panthor/panthor_devfreq.c
>> @@ -146,10 +146,9 @@ int panthor_devfreq_init(struct panthor_device *ptdev)
>>  	ptdev->devfreq = pdevfreq;
>>  
>>  	ret = devm_pm_opp_set_regulators(dev, reg_names);
>> -	if (ret) {
>> +	if (ret && ret != -ENODEV) {
>>  		if (ret != -EPROBE_DEFER)
>>  			DRM_DEV_ERROR(dev, "Couldn't set OPP regulators\n");
>> -
>>  		return ret;
>>  	}
>>  
>

      reply	other threads:[~2025-09-28  8:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-26  9:07 [PATCH v1] drm/panthor: skip regulator setup if no such prop Rain Yang
2025-09-26 10:03 ` Boris Brezillon
2025-09-28  8:36   ` Rain Yang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aNjzq_i0RLfovUGT@oss.nxp.com \
    --to=jiyu.yang@oss.nxp.com \
    --cc=airlied@gmail.co \
    --cc=boris.brezillon@collabora.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=imx@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liviu.dudau@arm.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marek.vasut@mailbox.org \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=steven.price@arm.com \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox