Skip to content
Snippets Groups Projects
Unverified Commit b0db6854 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

Try slower SDIO

parent e175f68c
No related branches found
No related tags found
No related merge requests found
From 42c09ae1d68d558bdc1f81062b2d0937290584a8 Mon Sep 17 00:00:00 2001
From: Michal Hrusecky <Michal@Hrusecky.net>
Date: Sun, 24 Feb 2019 13:26:17 +0100
Subject: [PATCH] Try slower SDIO
---
.../patches-4.14/666-Slow-down-SDIO.patch | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 target/linux/mvebu/patches-4.14/666-Slow-down-SDIO.patch
diff --git a/target/linux/mvebu/patches-4.14/666-Slow-down-SDIO.patch b/target/linux/mvebu/patches-4.14/666-Slow-down-SDIO.patch
new file mode 100644
index 0000000000..d91a0aae46
--- /dev/null
+++ b/target/linux/mvebu/patches-4.14/666-Slow-down-SDIO.patch
@@ -0,0 +1,46 @@
+From 07e2e362bb3b7e8f854e839807b1725dbce3c50c Mon Sep 17 00:00:00 2001
+From: Tomas Hlavacek <tmshlvck@gmail.com>
+Date: Sun, 24 Feb 2019 00:22:39 +0100
+Subject: [PATCH] Slow down SDIO
+
+---
+ drivers/mmc/core/sdio.c | 19 ++++++++++++-------
+ 1 file changed, 12 insertions(+), 7 deletions(-)
+
+diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
+index d8e17ea6126d..a2534e27e4bf 100644
+--- a/drivers/mmc/core/sdio.c
++++ b/drivers/mmc/core/sdio.c
+@@ -160,17 +160,22 @@ static int sdio_read_cccr(struct mmc_card *card, u32 ocr)
+ goto out;
+
+ if (mmc_host_uhs(card->host)) {
+- if (data & SDIO_UHS_DDR50)
+- card->sw_caps.sd3_bus_mode
+- |= SD_MODE_UHS_DDR50;
+-
+- if (data & SDIO_UHS_SDR50)
++ if (data & SDIO_UHS_DDR50) {
++ printk("%s card report SDIO_UHS_DDR50\n", __func__);
++ card->sw_caps.sd3_bus_mode
++ |= SD_MODE_UHS_DDR50;
++ }
++
++ if (data & SDIO_UHS_SDR50) {
++ printk("%s card report SDIO_UHS_SDR50\n", __func__);
+ card->sw_caps.sd3_bus_mode
+ |= SD_MODE_UHS_SDR50;
++ }
+
+ if (data & SDIO_UHS_SDR104)
+- card->sw_caps.sd3_bus_mode
+- |= SD_MODE_UHS_SDR104;
++ printk("%s card report SDIO_UHS_SDR104\n", __func__);
++ /*card->sw_caps.sd3_bus_mode
++ |= SD_MODE_UHS_SDR104;*/
+ }
+
+ ret = mmc_io_rw_direct(card, 0, 0,
+--
+2.19.1
+
--
2.20.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment