]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: qcom: gcc-x1e80100: Fix USB 0 and 1 PHY GDSC pwrsts flags
authorAbel Vesa <abel.vesa@linaro.org>
Thu, 1 Aug 2024 10:21:07 +0000 (13:21 +0300)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Aug 2024 02:15:09 +0000 (19:15 -0700)
commitf4c16a7cdbd2edecdb854f2ce0ef07c6263c5379
tree5aadf02aed1951b1d0b930ba7d414862ab88f1fb
parentf4973130d255dd4811006f5822d4fa4d0de9d712
clk: qcom: gcc-x1e80100: Fix USB 0 and 1 PHY GDSC pwrsts flags

Allowing these GDSCs to collapse makes the QMP combo PHYs lose their
configuration on machine suspend. Currently, the QMP combo PHY driver
doesn't reinitialise the HW on resume. Under such conditions, the USB
SuperSpeed support is broken. To avoid this, mark the pwrsts flags with
RET_ON. This is in line with USB 2 PHY GDSC config.

Fixes: 161b7c401f4b ("clk: qcom: Add Global Clock controller (GCC) driver for X1E80100")
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20240801-x1e80100-clk-gcc-fix-usb-phy-gdscs-pwrsts-v1-1-8df016768a0f@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gcc-x1e80100.c