usb: dwc3: switch to peripheral mode when exiting
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Wed, 11 Sep 2019 09:33:45 +0000 (11:33 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 24 Oct 2019 09:28:16 +0000 (11:28 +0200)
commitbbe3d4a6c14e17d251029e4dde07f184244e9a4a
tree8c241a3c9ee2f31b7f171f60b371c9826abe9a20
parenta8973731a452323e8767e8f9775c7d06921ebed5
usb: dwc3: switch to peripheral mode when exiting

This allow the phy to enter idle and then suspend.
the K2 platforms require the PHY to be suspended before the USB domain
clock can be turned off.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
drivers/usb/dwc3/core.c