U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: Marek Vasut <marek.vasut+renesas@mailbox.org>, u-boot@lists.denx.de
Cc: Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Stephan Gerhold <stephan@gerhold.net>,
	Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH] usb: gadget: ux500: Do not redefine ops if CONFIG_USB_MUSB_HOST set
Date: Mon, 19 Aug 2024 15:15:38 +0200	[thread overview]
Message-ID: <87ed6kwt51.fsf@baylibre.com> (raw)
In-Reply-To: <20240818200425.89045-1-marek.vasut+renesas@mailbox.org>

Hi Marek,

Thank you for the patch.

On dim., août 18, 2024 at 22:04, Marek Vasut <marek.vasut+renesas@mailbox.org> wrote:

> In case CONFIG_USB_MUSB_HOST is set, the ux500_gadget_ops get overridden
> to musb_usb_ops . Simply set the ops one way or the other depending on
> whether CONFIG_USB_MUSB_HOST is set or not.
>
> Fixes: ac4bf5d48a9e ("usb: gadget: ux500: Convert interrupt handling to usb_gadget_generic_ops")
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>

> ---
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Mattijs Korpershoek <mkorpershoek@baylibre.com>
> Cc: Stephan Gerhold <stephan@gerhold.net>
> Cc: Tom Rini <trini@konsulko.com>
> Cc: u-boot@lists.denx.de
> ---
>  drivers/usb/musb-new/ux500.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/usb/musb-new/ux500.c b/drivers/usb/musb-new/ux500.c
> index 89dd75b7d05..be0085f403d 100644
> --- a/drivers/usb/musb-new/ux500.c
> +++ b/drivers/usb/musb-new/ux500.c
> @@ -169,16 +169,14 @@ U_BOOT_DRIVER(ux500_musb) = {
>  	.name		= "ux500-musb",
>  #ifdef CONFIG_USB_MUSB_HOST
>  	.id		= UCLASS_USB,
> +	.ops		= &musb_usb_ops,
>  #else
>  	.id		= UCLASS_USB_GADGET_GENERIC,
> +	.ops		= &ux500_gadget_ops,
>  #endif
>  	.of_match	= ux500_musb_ids,
> -	.ops		= &ux500_gadget_ops,
>  	.probe		= ux500_musb_probe,
>  	.remove		= ux500_musb_remove,
> -#ifdef CONFIG_USB_MUSB_HOST
> -	.ops		= &musb_usb_ops,
> -#endif
>  	.plat_auto	= sizeof(struct usb_plat),
>  	.priv_auto	= sizeof(struct ux500_glue),
>  };
> -- 
> 2.43.0

  reply	other threads:[~2024-08-19 13:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-18 20:04 [PATCH] usb: gadget: ux500: Do not redefine ops if CONFIG_USB_MUSB_HOST set Marek Vasut
2024-08-19 13:15 ` Mattijs Korpershoek [this message]
2024-08-20  6:09 ` 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=87ed6kwt51.fsf@baylibre.com \
    --to=mkorpershoek@baylibre.com \
    --cc=linus.walleij@linaro.org \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=stephan@gerhold.net \
    --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