usb: dwc3: Undo PHY init if soft reset fails
authorBrian Norris <briannorris@chromium.org>
Wed, 17 Jan 2018 21:22:49 +0000 (13:22 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 12 Feb 2018 08:49:49 +0000 (10:49 +0200)
commit00b42170c86f90ac9dea83a7dfcd3f0c38098fe2
tree59a5b1082301936780af637d155eac32d11e62ed
parent8813a59ed892305b5ac1b5b901740b1ad4b5fefa
usb: dwc3: Undo PHY init if soft reset fails

In this function, we init the USB2 and USB3 PHYs, but if soft reset
times out, we don't unwind this.

Noticed by inspection.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c