]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: qcom: sm8450: disable SDHCI SDR104/SDR50 on all boards
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 26 Oct 2022 20:03:55 +0000 (16:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:57 +0000 (13:32 +0100)
[ Upstream commit 9d561dc4e5cc31e757f91eb7bb709d2e2a8c9ce0 ]

SDHCI on SM8450 HDK also has problems with SDR104/SDR50:

  mmc0: card never left busy state
  mmc0: error -110 whilst initialising SD card

so I think it is safe to assume this issue affects all SM8450 boards.
Move the quirk disallowing these modes to the SoC DTSI, to spare people
working on other boards the misery of debugging this issue.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221026200357.391635-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts
arch/arm64/boot/dts/qcom/sm8450.dtsi

index d68765eb6d4f97527e3bc96addb2e9036d748076..6351050bc87f2e2850779d32e9b649e3f1738c91 100644 (file)
        pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>;
        vmmc-supply = <&pm8350c_l9>;
        vqmmc-supply = <&pm8350c_l6>;
-       /* Forbid SDR104/SDR50 - broken hw! */
-       sdhci-caps-mask = <0x3 0x0>;
        no-sdio;
        no-mmc;
        status = "okay";
index dfc799244180b0c7825bec04b6d6001ce8f0fcdd..32a37c878a34cfd0a24576f006ab893938a17725 100644 (file)
                        bus-width = <4>;
                        dma-coherent;
 
+                       /* Forbid SDR104/SDR50 - broken hw! */
+                       sdhci-caps-mask = <0x3 0x0>;
+
                        status = "disabled";
 
                        sdhc2_opp_table: opp-table {