* [PATCH 1/1] drm/nouveau/disp: Use dev->dev to get the device
@ 2025-04-09 10:33 Sakari Ailus
2025-06-25 8:16 ` Sakari Ailus
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Sakari Ailus @ 2025-04-09 10:33 UTC (permalink / raw)
To: Lyude Paul, Danilo Krummrich; +Cc: dri-devel, nouveau
The local variable dev points to drm->dev already, use dev directly.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
Hi folks,
The background is that I'll be using a Coccinelle spatch soon to remove
(most) pm_runtime_mark_last_busy() calls. That won't work if the arguments
aren't the same.
- Sakari
drivers/gpu/drm/nouveau/nouveau_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index add006fc8d81..c50ec347b30a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -495,7 +495,7 @@ nouveau_display_hpd_work(struct work_struct *work)
if (first_changed_connector)
drm_connector_put(first_changed_connector);
- pm_runtime_mark_last_busy(drm->dev->dev);
+ pm_runtime_mark_last_busy(dev->dev);
noop:
pm_runtime_put_autosuspend(dev->dev);
}
--
2.39.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] drm/nouveau/disp: Use dev->dev to get the device
2025-04-09 10:33 [PATCH 1/1] drm/nouveau/disp: Use dev->dev to get the device Sakari Ailus
@ 2025-06-25 8:16 ` Sakari Ailus
2025-06-25 8:20 ` Danilo Krummrich
2025-06-25 18:10 ` Danilo Krummrich
2 siblings, 0 replies; 5+ messages in thread
From: Sakari Ailus @ 2025-06-25 8:16 UTC (permalink / raw)
To: Sakari Ailus; +Cc: Lyude Paul, Danilo Krummrich, dri-devel, nouveau
On Wed, Apr 09, 2025 at 01:33:44PM +0300, Sakari Ailus wrote:
> The local variable dev points to drm->dev already, use dev directly.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Ping.
--
Sakari Ailus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] drm/nouveau/disp: Use dev->dev to get the device
2025-04-09 10:33 [PATCH 1/1] drm/nouveau/disp: Use dev->dev to get the device Sakari Ailus
2025-06-25 8:16 ` Sakari Ailus
@ 2025-06-25 8:20 ` Danilo Krummrich
2025-06-25 8:50 ` Sakari Ailus
2025-06-25 18:10 ` Danilo Krummrich
2 siblings, 1 reply; 5+ messages in thread
From: Danilo Krummrich @ 2025-06-25 8:20 UTC (permalink / raw)
To: Sakari Ailus; +Cc: Lyude Paul, dri-devel, nouveau
On 4/9/25 12:33 PM, Sakari Ailus wrote:
> The local variable dev points to drm->dev already, use dev directly.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
> Hi folks,
>
> The background is that I'll be using a Coccinelle spatch soon to remove
> (most) pm_runtime_mark_last_busy() calls. That won't work if the arguments
> aren't the same.
If you want to submit / merge it together with your rework:
Acked-by: Danilo Krummrich <dakr@kernel.org>
If I should pick it up, please let me know.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] drm/nouveau/disp: Use dev->dev to get the device
2025-06-25 8:20 ` Danilo Krummrich
@ 2025-06-25 8:50 ` Sakari Ailus
0 siblings, 0 replies; 5+ messages in thread
From: Sakari Ailus @ 2025-06-25 8:50 UTC (permalink / raw)
To: Danilo Krummrich; +Cc: Lyude Paul, dri-devel, nouveau
Hi Danilo,
On Wed, Jun 25, 2025 at 10:20:07AM +0200, Danilo Krummrich wrote:
> On 4/9/25 12:33 PM, Sakari Ailus wrote:
> > The local variable dev points to drm->dev already, use dev directly.
> >
> > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> > ---
> > Hi folks,
> >
> > The background is that I'll be using a Coccinelle spatch soon to remove
> > (most) pm_runtime_mark_last_busy() calls. That won't work if the arguments
> > aren't the same.
>
> If you want to submit / merge it together with your rework:
>
> Acked-by: Danilo Krummrich <dakr@kernel.org>
>
> If I should pick it up, please let me know.
Either is definitely possible. However I'd prefer you to take this in order
to avoid potential conflicts with merging larger patches later on.
Thanks.
--
Kind regards,
Sakari Ailus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] drm/nouveau/disp: Use dev->dev to get the device
2025-04-09 10:33 [PATCH 1/1] drm/nouveau/disp: Use dev->dev to get the device Sakari Ailus
2025-06-25 8:16 ` Sakari Ailus
2025-06-25 8:20 ` Danilo Krummrich
@ 2025-06-25 18:10 ` Danilo Krummrich
2 siblings, 0 replies; 5+ messages in thread
From: Danilo Krummrich @ 2025-06-25 18:10 UTC (permalink / raw)
To: Sakari Ailus; +Cc: Lyude Paul, dri-devel, nouveau
On 4/9/25 12:33 PM, Sakari Ailus wrote:
> The local variable dev points to drm->dev already, use dev directly.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Applied to drm-misc-next, thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-25 18:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 10:33 [PATCH 1/1] drm/nouveau/disp: Use dev->dev to get the device Sakari Ailus
2025-06-25 8:16 ` Sakari Ailus
2025-06-25 8:20 ` Danilo Krummrich
2025-06-25 8:50 ` Sakari Ailus
2025-06-25 18:10 ` Danilo Krummrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).