U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Kory Maincent <kory.maincent@bootlin.com>,
	Jean-Jacques Hiblot <jjhiblot@ti.com>,
	u-boot@lists.denx.de
Cc: Kory Maincent <kory.maincent@bootlin.com>,
	thomas.petazzoni@bootlin.com, Marek Vasut <marex@denx.de>,
	Tom Rini <trini@konsulko.com>,
	Mattijs Korpershoek <mkorpershoek@kernel.org>
Subject: Re: [PATCH] usb: gadget: musb: Fix duplicate ops assignment in ti_musb_peripheral
Date: Fri, 13 Jun 2025 11:15:56 +0200	[thread overview]
Message-ID: <87wm9g3stv.fsf@kernel.org> (raw)
In-Reply-To: <20250611171031.840277-1-kory.maincent@bootlin.com>

Hi Kory,

Thank you for the patch.

On Wed, Jun 11, 2025 at 19:10, Kory Maincent <kory.maincent@bootlin.com> wrote:

> Remove duplicate .ops assignment that was overriding the correct
> ti_musb_gadget_ops with musb_usb_ops (host ops) in the ti_musb_peripheral
> driver. This was causing U-Boot crashes when trying to call the
> handle_interrupts operation since the wrong ops structure was being used.
>
> Fixes: 7d98dbcc3dc ("usb: musb-new: Add support for DM_USB")

I think this should also be flagged as:

Fixes: 281eaf1ed83a ("usb: gadget: musb: Convert interrupt handling to usb_gadget_generic_ops")

I can do that while applying.

Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>

> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
> ---
>  drivers/usb/musb-new/ti-musb.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c
> index ec1baa9337d..967d0953875 100644
> --- a/drivers/usb/musb-new/ti-musb.c
> +++ b/drivers/usb/musb-new/ti-musb.c
> @@ -282,7 +282,6 @@ U_BOOT_DRIVER(ti_musb_peripheral) = {
>  	.ops	= &ti_musb_gadget_ops,
>  	.probe = ti_musb_peripheral_probe,
>  	.remove = ti_musb_peripheral_remove,
> -	.ops	= &musb_usb_ops,
>  	.plat_auto	= sizeof(struct ti_musb_plat),
>  	.priv_auto	= sizeof(struct ti_musb_peripheral),
>  	.flags = DM_FLAG_PRE_RELOC,
> -- 
> 2.43.0

  reply	other threads:[~2025-06-13  9:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-11 17:10 [PATCH] usb: gadget: musb: Fix duplicate ops assignment in ti_musb_peripheral Kory Maincent
2025-06-13  9:15 ` Mattijs Korpershoek [this message]
2025-06-16  7:10 ` Mattijs Korpershoek

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=87wm9g3stv.fsf@kernel.org \
    --to=mkorpershoek@kernel.org \
    --cc=jjhiblot@ti.com \
    --cc=kory.maincent@bootlin.com \
    --cc=marex@denx.de \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.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