arm64: dts: qcom: msm8996-tone: Fix USB taking 6 minutes to wake up
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Thu, 24 Nov 2022 22:01:47 +0000 (23:01 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 28 Dec 2022 03:06:22 +0000 (21:06 -0600)
The hardware turns out to be pretty sluggish at assuming it can only
do USB2 with just a USB2 phy assigned to it - before it needed about
6 minutes to acknowledge that.

Limit it to USB-HS explicitly to make USB come up about 720x faster.

Fixes: 9da65e441d4d ("arm64: dts: qcom: Add support for SONY Xperia X Performance / XZ / XZs (msm8996, Tone platform)")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221124220147.102611-1-konrad.dybcio@linaro.org
arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi

index dec361b93cceaebd3226de48abad7c1f04f6e0bd..be62899edf8e37d58afa772d29f4a5feef5b96ee 100644 (file)
        };
 };
 
-/*
- * For reasons that are currently unknown (but probably related to fusb301), USB takes about
- * 6 minutes to wake up (nothing interesting in kernel logs), but then it works as it should.
- */
 &usb3 {
        status = "okay";
        qcom,select-utmi-as-pipe-clk;
 &usb3_dwc3 {
        extcon = <&usb3_id>;
        dr_mode = "peripheral";
+       maximum-speed = "high-speed";
        phys = <&hsusb_phy1>;
        phy-names = "usb2-phy";
        snps,hird-threshold = /bits/ 8 <0>;