diff options
| author | Jonas Karlman <[email protected]> | 2023-07-30 22:59:56 +0000 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2023-07-31 14:40:38 +0800 |
| commit | 6913c30516022f86104c9fbe315499e43eee4ed6 (patch) | |
| tree | 4e6905d43940410e713b22fcd0a26a252225791c /include/linux/stringify.h | |
| parent | 4412a2bf0b674d7438821531a0a19bbcd4b80eda (diff) | |
usb: dwc3-generic: Relax unsupported dr_mode check
When dr_mode is peripheral or otg and U-Boot has not been built with
DM_USB_GADGET support, booting such device may end up with:
dwc3_glue_bind_common: subnode name: usb@fcc00000
Error binding driver 'dwc3-generic-wrapper': -6
Some drivers failed to bind
initcall sequence 00000000effbca08 failed at call 0000000000a217c8 (err=-6)
### ERROR ### Please RESET the board ###
Instead fail gracfully with ENODEV to allow board continue booting.
dwc3_glue_bind_common: subnode name: usb@fcc00000
dwc3_glue_bind_common: unsupported dr_mode 3
Also use CONFIG_IS_ENABLED(USB_HOST) and change switch to if statements
to improve readability of the code.
Fixes: 446e3a205b87 ("dwc3-generic: Handle the PHYs, the clocks and the reset lines")
Signed-off-by: Jonas Karlman <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
