Patch "arm64: dts: allwinner: Revert SD card CD GPIO for Pine64-LTS" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    arm64: dts: allwinner: Revert SD card CD GPIO for Pine64-LTS

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm64-dts-allwinner-revert-sd-card-cd-gpio-for-pine6.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0daaed37e4ac1b79c34021ee75883d80c86abc92
Author: Andre Przywara <andre.przywara@xxxxxxx>
Date:   Wed Apr 14 11:47:40 2021 +0100

    arm64: dts: allwinner: Revert SD card CD GPIO for Pine64-LTS
    
    [ Upstream commit 4d09ccc4a81e7de6b002482af554d8b5626f5041 ]
    
    Commit 941432d00768 ("arm64: dts: allwinner: Drop non-removable from
    SoPine/LTS SD card") enabled the card detect GPIO for the SOPine module,
    along the way with the Pine64-LTS, which share the same base .dtsi.
    
    This was based on the observation that the Pine64-LTS has as "push-push"
    SD card socket, and that the schematic mentions the card detect GPIO.
    
    After having received two reports about failing SD card access with that
    patch, some more research and polls on that subject revealed that there
    are at least two different versions of the Pine64-LTS out there:
    - On some boards (including mine) the card detect pin is "stuck" at
      high, regardless of an microSD card being inserted or not.
    - On other boards the card-detect is working, but is active-high, by
      virtue of an explicit inverter circuit, as shown in the schematic.
    
    To cover all versions of the board out there, and don't take any chances,
    let's revert the introduction of the active-low CD GPIO, but let's use
    the broken-cd property for the Pine64-LTS this time. That should avoid
    regressions and should work for everyone, even allowing SD card changes
    now.
    The SOPine card detect has proven to be working, so let's keep that
    GPIO in place.
    
    Fixes: 941432d00768 ("arm64: dts: allwinner: Drop non-removable from SoPine/LTS SD card")
    Reported-by: Michael Weiser <michael.weiser@xxxxxx>
    Reported-by: Daniel Kulesz <kuleszdl@xxxxxxxxxx>
    Suggested-by: Chen-Yu Tsai <wens@xxxxxxxx>
    Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx>
    Tested-by: Michael Weiser <michael.weiser@xxxxxx>
    Signed-off-by: Maxime Ripard <maxime@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210414104740.31497-1-andre.przywara@xxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts
index 8d15164f2a3c..7eb252adf9f0 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts
@@ -13,5 +13,5 @@
 };
 
 &mmc0 {
-	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 push-push switch */
+	broken-cd;		/* card detect is broken on *some* boards */
 };



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux