[PATCH 1/2] usb: dwc3-generic: allow fallback of dr_mode property to "otg"

Kaustabh Chakraborty kauschluss at disroot.org
Tue Dec 16 20:45:14 CET 2025


On 2025-12-16 11:13, Marek Vasut wrote:
> On 10/17/25 5:30 PM, Kaustabh Chakraborty wrote:
>> Documentation [1] states that the default value of the dr_mode property
>> is "otg". In this driver however, this case is not handled. Add simple
>> logic to fall back to USB_DR_MODE_OTG if its reported to be
>> USB_DR_MODE_UNKNOWN.
>> 
>> Link: https://elixir.bootlin.com/u-boot/v2025.10/source/dts/upstream/Bindings/usb/usb-drd.yaml#L23 [1]
>> Signed-off-by: Kaustabh Chakraborty <kauschluss at disroot.org>
> How does the driver end up with "unknown" state in the first place ? What is triggering this problem ? (this should be in the commit message)

When dr_mode is not defined in the device tree node.
It isn't marked as a mandatory node, and defaults to OTG. That's the
reason in the commit.

I will add this info in the commit message then.


More information about the U-Boot mailing list