]> git.baikalelectronics.ru Git - uboot.git/commit
usb: dwc3-meson-g12a: always configure dr-mode
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 14 Dec 2020 11:34:19 +0000 (12:34 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 14 Dec 2020 18:58:54 +0000 (19:58 +0100)
commit4f1b81d535fccb31f7b1b3d9e94ce149a0f9e7bb
tree2f27745e424646113a3257a495d6bb900cf8d409
parent4e9f6d25030419f5b7978c6ecccee78c242cee69
usb: dwc3-meson-g12a: always configure dr-mode

dwc3_meson_g12a_force_mode() sets the dr-mode of the USB PHY. However
it skips setting the mode if it matches the one done during driver probe
(stored in private structure). This fails if the mode has been changed
to other value and then back to initial one. Fix this by configuring the
dr-mode always, regadless of the one set at the driver probe).

This fixes operation of USB gadget based drivers when they are initialized
for the second time.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/usb/dwc3/dwc3-meson-g12a.c