diff mbox series

[v2] dts64: mt7622: fix slow sd card access

Message ID 20210113180919.49523-1-linux@fw-web.de
State New
Headers show
Series [v2] dts64: mt7622: fix slow sd card access | expand

Commit Message

Frank Wunderlich Jan. 13, 2021, 6:09 p.m. UTC
From: Frank Wunderlich <frank-w@public-files.de>

Fix extreme slow speed (200MB takes ~20 min) on writing sdcard on
bananapi-r64 by adding reset-control for mmc1 like it's done for mmc0/emmc.

Cc: stable@vger.kernel.org
Fixes: 2c002a3049f7 ("arm64: dts: mt7622: add mmc related device nodes")
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
changes since v1:
 - drop change to uhs-mode because mt7622 does not support it
---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Comments

Matthias Brugger Jan. 31, 2021, 3:02 p.m. UTC | #1
On 13/01/2021 19:09, Frank Wunderlich wrote:
> From: Frank Wunderlich <frank-w@public-files.de>

> 

> Fix extreme slow speed (200MB takes ~20 min) on writing sdcard on

> bananapi-r64 by adding reset-control for mmc1 like it's done for mmc0/emmc.

> 

> Cc: stable@vger.kernel.org

> Fixes: 2c002a3049f7 ("arm64: dts: mt7622: add mmc related device nodes")

> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>


Applied to v5.11-next/dts64

Thanks!

> ---

> changes since v1:

>  - drop change to uhs-mode because mt7622 does not support it

> ---

>  arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 ++

>  1 file changed, 2 insertions(+)

> 

> diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi

> index 5b9ec032ce8d..7c6d871538a6 100644

> --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi

> +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi

> @@ -698,6 +698,8 @@ mmc1: mmc@11240000 {

>  		clocks = <&pericfg CLK_PERI_MSDC30_1_PD>,

>  			 <&topckgen CLK_TOP_AXI_SEL>;

>  		clock-names = "source", "hclk";

> +		resets = <&pericfg MT7622_PERI_MSDC1_SW_RST>;

> +		reset-names = "hrst";

>  		status = "disabled";

>  	};

>  

>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index 5b9ec032ce8d..7c6d871538a6 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -698,6 +698,8 @@  mmc1: mmc@11240000 {
 		clocks = <&pericfg CLK_PERI_MSDC30_1_PD>,
 			 <&topckgen CLK_TOP_AXI_SEL>;
 		clock-names = "source", "hclk";
+		resets = <&pericfg MT7622_PERI_MSDC1_SW_RST>;
+		reset-names = "hrst";
 		status = "disabled";
 	};