]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: gadget: ux500: Do not redefine ops if CONFIG_USB_MUSB_HOST set
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 18 Aug 2024 20:04:15 +0000 (22:04 +0200)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Thu, 22 Aug 2024 07:23:33 +0000 (09:23 +0200)
commite49eeb6575152cac4241f3c87471934a726970e9
treeb34a9f7495c4d4614a2ce148ce331f667750989b
parent6509c3fe1c7dddf1d598a9fd8234ed760b3a428b
usb: gadget: ux500: Do not redefine ops if CONFIG_USB_MUSB_HOST set

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>
Link: https://lore.kernel.org/r/20240818200425.89045-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
drivers/usb/musb-new/ux500.c