]> git.baikalelectronics.ru Git - uboot.git/commit
usb: dwc3: Fix enabling USB_DR_MODE_HOST
authorOleksandr Suvorov <oleksandr.suvorov@foundries.io>
Fri, 25 Aug 2023 10:42:40 +0000 (13:42 +0300)
committerMarek Vasut <marex@denx.de>
Mon, 4 Sep 2023 13:51:38 +0000 (15:51 +0200)
commit14a4527c63d634746a4f83ec37d192a7e35593e9
tree5cc0b800fb266ee9a7b440c0ac07f7d271ed7965
parent6dab2f58a6f2e6ee5e017101ed75f65d22b950ee
usb: dwc3: Fix enabling USB_DR_MODE_HOST

The original logic always enables USB_DR_MODE_HOST operation mode in
dwc3_layerscape_bind() in u-boot. Prevent choosing USB_DR_MODE_HOST
operation mode if USB_HOST is not enabled.

Fixes: 98ebefe61b2 ("usb: dwc3: add layerscape support")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
drivers/usb/dwc3/dwc3-layerscape.c