linux-stable/arch/arm64
Sumit Garg d9f1fa7c4e arm64: dts: qcom: qcs404: Fix incorrect USB2 PHYs assignment
[ Upstream commit 58577966a4 ]

Currently the DT for QCS404 SoC has setup for 2 USB2 PHYs with one each
assigned to USB3 controller and USB2 controller. This assignment is
incorrect which only works by luck: as when each USB HCI comes up it
configures the *other* controllers PHY which is enough to make them
happy. If, for any reason, we were to disable one of the controllers then
both would stop working.

This was a difficult inconsistency to be caught which was found while
trying to enable USB support in u-boot. So with all the required drivers
ported to u-boot, I couldn't get the same USB storage device enumerated
in u-boot which was being enumerated fine by the kernel.

The root cause of the problem came out to be that I wasn't enabling USB2
PHY: "usb2_phy_prim" in u-boot. Then I realised that via simply disabling
the same USB2 PHY currently assigned to USB2 host controller in the
kernel disabled enumeration for USB3 host controller as well.

So fix this inconsistency by correctly assigning USB2 PHYs.

Fixes: 9375e7d719 ("arm64: dts: qcom: qcs404: Add USB devices and PHYs")
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220711083038.1518529-1-sumit.garg@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 15:14:19 +02:00
..
boot arm64: dts: qcom: qcs404: Fix incorrect USB2 PHYs assignment 2022-08-17 15:14:19 +02:00
configs - Enable essential PMIC and regulatro drivers for MT8195. 2022-05-13 14:02:30 +02:00
crypto crypto: arm64/poly1305 - fix a read out-of-bound 2022-08-11 13:22:03 +02:00
hyperv
include arm64: Do not forget syscall when starting a new thread. 2022-08-17 15:14:00 +02:00
kernel arm64: cpufeature: Allow different PMU versions in ID_DFR0_EL1 2022-08-17 15:14:10 +02:00
kvm KVM: arm64: Prevent kmemleak from accessing pKVM memory 2022-06-17 09:48:38 +01:00
lib S390: 2022-05-26 14:20:14 -07:00
mm arm64: kasan: Revert "arm64: mte: reset the page tag in page->flags" 2022-08-17 15:14:00 +02:00
net bpf, arm64: Clear prog->jited_len along prog->jited 2022-06-07 10:40:53 -07:00
tools arm64: errata: Remove AES hwcap for COMPAT tasks 2022-08-17 15:14:00 +02:00
xen
Kbuild
Kconfig arm64: select TRACE_IRQFLAGS_NMI_SUPPORT 2022-08-17 15:14:09 +02:00
Kconfig.debug
Kconfig.platforms arm64 updates for 5.19: 2022-05-23 21:06:11 -07:00
Makefile kbuild: factor out the common installation code into scripts/install.sh 2022-05-11 21:45:53 +09:00