From: Brajesh Gupta <Brajesh.Gupta@imgtec.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"javierm@redhat.com" <javierm@redhat.com>
Cc: "tzimmermann@suse.de" <tzimmermann@suse.de>,
Matt Coster <Matt.Coster@imgtec.com>,
"simona@ffwll.ch" <simona@ffwll.ch>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"airlied@gmail.com" <airlied@gmail.com>,
Frank Binns <Frank.Binns@imgtec.com>,
"maarten.lankhorst@linux.intel.com"
<maarten.lankhorst@linux.intel.com>,
"mripard@kernel.org" <mripard@kernel.org>
Subject: Re: [EXTERNAL] [PATCH] drm/imagination: Fix missing pvr_power_fw_{en,dis}able() argument
Date: Tue, 19 May 2026 15:10:32 +0000 [thread overview]
Message-ID: <5b44cf26b7aae3a35db54492e9c093a3b3fd9342.camel@imgtec.com> (raw)
In-Reply-To: <20260519131239.1291732-1-javierm@redhat.com>
On Tue, 2026-05-19 at 15:12 +0200, Javier Martinez Canillas wrote:
> *** CAUTION: This email originates from a source not known to Imagination Technologies. Think before you click a link or open an attachment ***
>
> Commit 42577ba79fbf ("drm/imagination: Rename FW booted to FW initialised")
> dropped by mistake the last argument of the functions pvr_power_fw_enable()
> and pvr_power_fw_disable(), leading to the following compile error:
>
> CC [M] drivers/gpu/drm/imagination/pvr_power.o
> drivers/gpu/drm/imagination/pvr_power.c: In function ‘pvr_power_device_suspend’:
> drivers/gpu/drm/imagination/pvr_power.c:382:23: error: too few arguments to function ‘pvr_power_fw_disable’; expected 3, have 2
> 382 | err = pvr_power_fw_disable(pvr_dev, false);
> | ^~~~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/imagination/pvr_power.c:93:1: note: declared here
> 93 | pvr_power_fw_disable(struct pvr_device *pvr_dev, bool hard_reset, bool rpm_suspend)
> | ^~~~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/imagination/pvr_power.c: In function ‘pvr_power_device_resume’:
> drivers/gpu/drm/imagination/pvr_power.c:412:23: error: too few arguments to function ‘pvr_power_fw_enable’; expected 2, have 1
> 412 | err = pvr_power_fw_enable(pvr_dev);
> | ^~~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/imagination/pvr_power.c:122:1: note: declared here
> 122 | pvr_power_fw_enable(struct pvr_device *pvr_dev, bool rpm_resume)
> | ^~~~~~~~~~~~~~~~~~~
> make[6]: *** [scripts/Makefile.build:289: drivers/gpu/drm/imagination/pvr_power.o] Error 1
> make[5]: *** [scripts/Makefile.build:548: drivers/gpu/drm/imagination] Error 2
> make[4]: *** [scripts/Makefile.build:548: drivers/gpu/drm] Error 2
> make[3]: *** [scripts/Makefile.build:548: drivers/gpu] Error 2
> make[2]: *** [scripts/Makefile.build:548: drivers] Error 2
> make[1]: *** [/home/javier/devel/linux/Makefile:2141: .] Error 2
> make: *** [Makefile:248: __sub-make] Error 2
>
> Fixes: 42577ba79fbf ("drm/imagination: Rename FW booted to FW initialised")
> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
> ---
>
>
> drivers/gpu/drm/imagination/pvr_power.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/imagination/pvr_power.c b/drivers/gpu/drm/imagination/pvr_power.c
> index 0ed9e7be604b..a71d5b35601e 100644
> --- a/drivers/gpu/drm/imagination/pvr_power.c
> +++ b/drivers/gpu/drm/imagination/pvr_power.c
> @@ -379,7 +379,7 @@ pvr_power_device_suspend(struct device *dev)
> return -EIO;
>
> if (READ_ONCE(pvr_dev->fw_dev.initialised)) {
> - err = pvr_power_fw_disable(pvr_dev, false);
> + err = pvr_power_fw_disable(pvr_dev, false, true);
> if (err)
> goto err_drm_dev_exit;
> }
> @@ -409,7 +409,7 @@ pvr_power_device_resume(struct device *dev)
> goto err_drm_dev_exit;
>
> if (READ_ONCE(pvr_dev->fw_dev.initialised)) {
> - err = pvr_power_fw_enable(pvr_dev);
> + err = pvr_power_fw_enable(pvr_dev, true);
> if (err)
> goto err_power_off;
> }
Reviewed-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
next prev parent reply other threads:[~2026-05-19 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 13:12 [PATCH] drm/imagination: Fix missing pvr_power_fw_{en, dis}able() argument Javier Martinez Canillas
2026-05-19 15:10 ` Brajesh Gupta [this message]
2026-05-20 9:00 ` [EXTERNAL] [PATCH] drm/imagination: Fix missing pvr_power_fw_{en,dis}able() argument Javier Martinez Canillas
2026-05-25 12:55 ` Claude review: drm/imagination: Fix missing pvr_power_fw_{en, dis}able() argument Claude Code Review Bot
2026-05-25 12:55 ` Claude Code Review Bot
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=5b44cf26b7aae3a35db54492e9c093a3b3fd9342.camel@imgtec.com \
--to=brajesh.gupta@imgtec.com \
--cc=Frank.Binns@imgtec.com \
--cc=Matt.Coster@imgtec.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=javierm@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--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