[PATCH v2] usb: dwc3: am62: Use UCLASS_NOP for glue driver
Mattijs Korpershoek
mkorpershoek at baylibre.com
Fri Feb 28 09:47:18 CET 2025
The dwc3 driver allows SoC-specific configuration via the dwc3_glue_ops
structure. Glue drivers, which implement dwc3_glue_ops, usually just
define the .glue_configure() function.
dwc3-am62 is such glue driver which does not need to be a SIMPLE_BUS
since it does not interact with any child device.
Use UCLASS_NOP instead as done in the dwc3-generic-wrapper.
Reviewed-by: Siddharth Vadapalli <s-vadapalli at ti.com>
Signed-off-by: Mattijs Korpershoek <mkorpershoek at baylibre.com>
---
This is a small cleanup intended for next.
This has been tested on AM62X SK EVM using:
=> fastboot usb 0
$ fastboot devices
???????????? Android Fastboot
---
Changes in v2:
- Updated commit message (Siddharth)
- Added Siddharth's R-b
- Link to v1: https://lore.kernel.org/r/20250226-dwc3-am62-gadget-nop-v1-1-baff88b15ba0@baylibre.com
---
drivers/usb/dwc3/dwc3-am62.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c
index 99519602eb2c66299445163fafcdb3e065c89eda..66164d0a80c0264bfc400426782324f8a57b8bd8 100644
--- a/drivers/usb/dwc3/dwc3-am62.c
+++ b/drivers/usb/dwc3/dwc3-am62.c
@@ -116,7 +116,7 @@ static const struct udevice_id dwc3_am62_match[] = {
U_BOOT_DRIVER(dwc3_am62_wrapper) = {
.name = "dwc3-am62",
- .id = UCLASS_SIMPLE_BUS,
+ .id = UCLASS_NOP,
.of_match = dwc3_am62_match,
.bind = dwc3_glue_bind,
.probe = dwc3_glue_probe,
---
base-commit: 8dd7186ca7821446c6f46b6cccefab502912f2e0
change-id: 20250226-dwc3-am62-gadget-nop-4b33c79d8d5e
Best regards,
--
Mattijs Korpershoek <mkorpershoek at baylibre.com>
More information about the U-Boot
mailing list