summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKaustabh Chakraborty <[email protected]>2026-01-08 18:03:44 +0530
committerMarek Vasut <[email protected]>2026-01-08 15:13:19 +0100
commit218ad7ba3f13f98788cc4abaa057a249fdb3d4f1 (patch)
treefa77392999a009114ccb49e26575626226b95664 /scripts
parent13c9c975e79b73626507702cc2117b7efa3abe9a (diff)
usb: dwc3-generic: allow fallback of dr_mode property to "otg"
Documentation [1] states that the default value of the dr_mode property is "otg". It also isn't marked a mandatory node, so it may or may not be set. So, accordingly if dr_mode is not mentioned in the devicetree node, OTG mode must be assumed. In this driver however, this case is not handled. If dr_mode is not mentioned, USB_DR_MODE_UNKNOWN is set. The logic implemented raises an error, instead of falling back to USB_DR_MODE_OTG. Correct this to conform to the specification. Link: https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/tree/Bindings/usb/usb-drd.yaml?h=v6.18-dts [1] Reviewed-by: Marek Vasut <[email protected]> Signed-off-by: Kaustabh Chakraborty <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions