usb: gadget: musb: Fix duplicate ops assignment in ti_musb_peripheral
PATCH 1/1 usb: gadget: musb: Fix duplicate ops assignment in ti_musb_peripheral
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.
--- drivers/usb/musb-new/ti-musb.c | 1 - 1 file changed, 1 deletion(-)
drivers/usb/musb-new/ti-musb.c +0 -1
@@ -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,
Signature · 1 line
2.43.0
Hi Kory,
Thank you for the patch.
Quoted 6 lines · Kory Maincent
Remove duplicate .ops assignment that was overriding the correct
ti_musb_gadget_opswithmusb_usb_ops(host ops) in theti_musb_peripheraldriver. This was causing U-Boot crashes when trying to call thehandle_interruptsoperation 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:
I can do that while applying.
Quoted 19 lines
Signed-off-by Kory Maincent <[email protected]>--- drivers/usb/musb-new/ti-musb.c | 1 - 1 file changed, 1 deletion(-)drivers/usb/musb-new/ti-musb.c +0
-1@@ -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,Signature · 1 line
2.43.0
Hi,
Quoted 6 lines · Kory Maincent
Remove duplicate .ops assignment that was overriding the correct
ti_musb_gadget_opswithmusb_usb_ops(host ops) in theti_musb_peripheraldriver. This was causing U-Boot crashes when trying to call thehandle_interruptsoperation since the wrong ops structure was being used.
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu)
[1/1] usb: gadget: musb: Fix duplicate ops assignment in ti_musb_peripheral
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/e6eca9ea6457e79acb4e2a426f1e078842c17b25
--
Mattijs