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.

Fixes: 7d98dbcc3d ("usb: musb-new: Add support for DM_USB")
Fixes: 281eaf1ed8 ("usb: gadget: musb: Convert interrupt handling to usb_gadget_generic_ops")
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Link: https://lore.kernel.org/r/20250611171031.840277-1-kory.maincent@bootlin.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
This commit is contained in:
Kory Maincent
2025-06-11 19:10:30 +02:00
committed by Mattijs Korpershoek
parent aa2efc584a
commit e6eca9ea64

View File

@@ -282,7 +282,6 @@ U_BOOT_DRIVER(ti_musb_peripheral) = {
.ops = &ti_musb_gadget_ops, .ops = &ti_musb_gadget_ops,
.probe = ti_musb_peripheral_probe, .probe = ti_musb_peripheral_probe,
.remove = ti_musb_peripheral_remove, .remove = ti_musb_peripheral_remove,
.ops = &musb_usb_ops,
.plat_auto = sizeof(struct ti_musb_plat), .plat_auto = sizeof(struct ti_musb_plat),
.priv_auto = sizeof(struct ti_musb_peripheral), .priv_auto = sizeof(struct ti_musb_peripheral),
.flags = DM_FLAG_PRE_RELOC, .flags = DM_FLAG_PRE_RELOC,