]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:28:28 +0000 (12:28 +0200)
commit55616e44c839effe12d54a4a99ecb3ae9e5b41aa
treeca7ec53f5539460c864bbfb9005b87b20c2ff406
parentbe79e9c84591f937c31b279bece55a3c7587d200
usb: dwc3: Undo PHY init if soft reset fails

BugLink: http://bugs.launchpad.net/bugs/1783418
[ Upstream commit 00b42170c86f90ac9dea83a7dfcd3f0c38098fe2 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/dwc3/core.c