]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: xilinx: fix usb3 non-wakeup source resume failure
authorPiyush Mehta <piyush.mehta@amd.com>
Mon, 12 Sep 2022 11:10:17 +0000 (16:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2022 13:52:30 +0000 (15:52 +0200)
commit09d227747051321cf52b64253df183574503df0a
tree02ab09c74fc5395020510020e2ab2bced5e043fe
parent712b8464040a4da0c6843c0f18a8471dcfb4cc71
usb: dwc3: xilinx: fix usb3 non-wakeup source resume failure

When USB is in super-speed mode and disabled as a wakeup source,
observed that on the resume path, lanes have not been configured
properly in the phy-zynqmp driver.
As a result, after the resume, USB device detection failed on host.

To resolved the above issue, added phy_init on resume and phy_exit
on suspend path, to configure the GT lanes correctly.
The re-initialization of phy, reset the device and re-enumerate
the USB subsystem.

This use-case is specific to Xilinx ZynqMP SoC.

Signed-off-by: Piyush Mehta <piyush.mehta@amd.com>
Link: https://lore.kernel.org/r/20220912111017.901321-3-piyush.mehta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-xilinx.c