]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: xilinx: make sure pipe clock is deselected in usb2 only mode
authorNeal Frager <neal.frager@amd.com>
Mon, 2 Dec 2024 18:11:51 +0000 (23:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:08:50 +0000 (18:08 +0100)
commit1c5902fa3e9c96fefe9300f54f4b004c9d9ba6ef
tree0b1246cc18b30222c039f2b7cdc3582b609892c0
parentc83213b6649d22656b3a4e92544ceeea8a2c6c07
usb: dwc3: xilinx: make sure pipe clock is deselected in usb2 only mode

commit a48f744bef9ee74814a9eccb030b02223e48c76c upstream.

When the USB3 PHY is not defined in the Linux device tree, there could
still be a case where there is a USB3 PHY active on the board and enabled
by the first stage bootloader. If serdes clock is being used then the USB
will fail to enumerate devices in 2.0 only mode.

To solve this, make sure that the PIPE clock is deselected whenever the
USB3 PHY is not defined and guarantees that the USB2 only mode will work
in all cases.

Fixes: 9678f3361afc ("usb: dwc3: xilinx: Skip resets and USB3 register settings for USB2.0 mode")
Cc: stable@vger.kernel.org
Signed-off-by: Neal Frager <neal.frager@amd.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Link: https://lore.kernel.org/r/1733163111-1414816-1-git-send-email-radhey.shyam.pandey@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-xilinx.c