* [PATCH] usb: gadget: udc: renesas_usb3: drop unused module alias
@ 2025-07-24 9:20 Johan Hovold
2025-07-28 8:56 ` Geert Uytterhoeven
0 siblings, 1 reply; 4+ messages in thread
From: Johan Hovold @ 2025-07-24 9:20 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-usb, linux-kernel, Johan Hovold
Since commit f3323cd03e58 ("usb: gadget: udc: renesas_usb3: remove R-Car
H3 ES1.* handling") the driver only supports OF probe so drop the unused
platform module alias.
Signed-off-by: Johan Hovold <johan@kernel.org>
---
drivers/usb/gadget/udc/renesas_usb3.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/usb/gadget/udc/renesas_usb3.c b/drivers/usb/gadget/udc/renesas_usb3.c
index d23b1762e0e4..bdb88ab0ff73 100644
--- a/drivers/usb/gadget/udc/renesas_usb3.c
+++ b/drivers/usb/gadget/udc/renesas_usb3.c
@@ -3024,4 +3024,3 @@ module_platform_driver(renesas_usb3_driver);
MODULE_DESCRIPTION("Renesas USB3.0 Peripheral driver");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>");
-MODULE_ALIAS("platform:renesas_usb3");
--
2.49.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: gadget: udc: renesas_usb3: drop unused module alias
2025-07-24 9:20 [PATCH] usb: gadget: udc: renesas_usb3: drop unused module alias Johan Hovold
@ 2025-07-28 8:56 ` Geert Uytterhoeven
2025-07-29 9:23 ` Johan Hovold
0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2025-07-28 8:56 UTC (permalink / raw)
To: Johan Hovold; +Cc: Greg Kroah-Hartman, linux-usb, linux-kernel, Linux-Renesas
Hi Johan,
Thanks for your patch, which is now commit 7b4b5591d4551efe
("usb: gadget: udc: renesas_usb3: drop unused module alias") in
usb/usb-next.
On Thu, 24 Jul 2025 at 11:21, Johan Hovold <johan@kernel.org> wrote:
> Since commit f3323cd03e58 ("usb: gadget: udc: renesas_usb3: remove R-Car
> H3 ES1.* handling") the driver only supports OF probe so drop the unused
> platform module alias.
>
> Signed-off-by: Johan Hovold <johan@kernel.org>
While I don't debate the actual change, I would like to comment on
the patch description. The driver only ever supported OF probe.
The call to soc_device_match() was just used to override the match
data for quirk handling.
> --- a/drivers/usb/gadget/udc/renesas_usb3.c
> +++ b/drivers/usb/gadget/udc/renesas_usb3.c
> @@ -3024,4 +3024,3 @@ module_platform_driver(renesas_usb3_driver);
> MODULE_DESCRIPTION("Renesas USB3.0 Peripheral driver");
> MODULE_LICENSE("GPL v2");
> MODULE_AUTHOR("Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>");
> -MODULE_ALIAS("platform:renesas_usb3");
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: gadget: udc: renesas_usb3: drop unused module alias
2025-07-28 8:56 ` Geert Uytterhoeven
@ 2025-07-29 9:23 ` Johan Hovold
2025-07-29 9:45 ` Geert Uytterhoeven
0 siblings, 1 reply; 4+ messages in thread
From: Johan Hovold @ 2025-07-29 9:23 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Greg Kroah-Hartman, linux-usb, linux-kernel, Linux-Renesas
Hi Geert,
On Mon, Jul 28, 2025 at 10:56:18AM +0200, Geert Uytterhoeven wrote:
> On Thu, 24 Jul 2025 at 11:21, Johan Hovold <johan@kernel.org> wrote:
> > Since commit f3323cd03e58 ("usb: gadget: udc: renesas_usb3: remove R-Car
> > H3 ES1.* handling") the driver only supports OF probe so drop the unused
> > platform module alias.
> >
> > Signed-off-by: Johan Hovold <johan@kernel.org>
>
> While I don't debate the actual change, I would like to comment on
> the patch description. The driver only ever supported OF probe.
> The call to soc_device_match() was just used to override the match
> data for quirk handling.
The driver initially indeed only supported OF probe, but that changed
with commit ca02a5af650c ("usb: gadget: udc: renesas_usb3: Use
of_device_get_match_data() helper") after which the driver could at
least theoretically also bind based on the platform device name.
Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: gadget: udc: renesas_usb3: drop unused module alias
2025-07-29 9:23 ` Johan Hovold
@ 2025-07-29 9:45 ` Geert Uytterhoeven
0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2025-07-29 9:45 UTC (permalink / raw)
To: Johan Hovold; +Cc: Greg Kroah-Hartman, linux-usb, linux-kernel, Linux-Renesas
Hi Johan,
On Tue, 29 Jul 2025 at 11:23, Johan Hovold <johan@kernel.org> wrote:
> On Mon, Jul 28, 2025 at 10:56:18AM +0200, Geert Uytterhoeven wrote:
> > On Thu, 24 Jul 2025 at 11:21, Johan Hovold <johan@kernel.org> wrote:
> > > Since commit f3323cd03e58 ("usb: gadget: udc: renesas_usb3: remove R-Car
> > > H3 ES1.* handling") the driver only supports OF probe so drop the unused
> > > platform module alias.
> > >
> > > Signed-off-by: Johan Hovold <johan@kernel.org>
> >
> > While I don't debate the actual change, I would like to comment on
> > the patch description. The driver only ever supported OF probe.
> > The call to soc_device_match() was just used to override the match
> > data for quirk handling.
>
> The driver initially indeed only supported OF probe, but that changed
> with commit ca02a5af650c ("usb: gadget: udc: renesas_usb3: Use
> of_device_get_match_data() helper") after which the driver could at
> least theoretically also bind based on the platform device name.
Oh right, now I see what you meant.
Yes, in theory the driver could bind before on a legacy platform device,
but it would crash on a NULL-pointer dereference when running on
anything but R-Car H3 ES1.0x ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-29 9:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24 9:20 [PATCH] usb: gadget: udc: renesas_usb3: drop unused module alias Johan Hovold
2025-07-28 8:56 ` Geert Uytterhoeven
2025-07-29 9:23 ` Johan Hovold
2025-07-29 9:45 ` Geert Uytterhoeven
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).