]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc3-generic: fix CONFIG_DM_REGULATOR-off case
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 8 Aug 2024 08:51:33 +0000 (10:51 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 11 Oct 2024 03:11:06 +0000 (05:11 +0200)
commitc69ba5a4fed62463fb137eef8ed1fdc1aba2ff1f
treeed94a4010f85a7cecbdb19e7daa6030f954ea9f2
parenta404065479be2c1fe1167c3c91367e8194a69d1b
usb: dwc3-generic: fix CONFIG_DM_REGULATOR-off case

When DM_REGULATOR is disabled, all calls will return -ENOSYS. Account
for that so that targets like the IOT2050 will work again.

Fixes: de451d5d5b6f ("usb: dwc3-generic: support external vbus regulator")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/usb/dwc3/dwc3-generic.c