All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [BUG] snow: mmc: SD card access broken: unable to select a mode
@ 2018-04-09 12:02 Guillaume Gardet
  2018-04-09 13:58 ` Jean-Jacques Hiblot
       [not found] ` <CGME20180426103106epcas1p106acee25ea8ae693cebe1d14f46c6ba9@epcas1p1.samsung.com>
  0 siblings, 2 replies; 14+ messages in thread
From: Guillaume Gardet @ 2018-04-09 12:02 UTC (permalink / raw)
  To: u-boot

Hi Jaehoon,

There are problems with SD card access on Samsung Chromebook (snow) with latest master (and also 2018.05-rc1 and 2018.03).

eMMC is ok, but SD card access leads to 'unable to select a mode' problem. If I disable HS mode, I can access the SD card without problem:
********************************************************************************
diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
index 23f642980bf..28f4fa0f213 100644
--- a/drivers/mmc/dw_mmc.c
+++ b/drivers/mmc/dw_mmc.c
@@ -508,7 +508,8 @@ void dwmci_setup_cfg(struct mmc_config *cfg, struct dwmci_host *host,
          cfg->host_caps |= MMC_MODE_4BIT;
          cfg->host_caps &= ~MMC_MODE_8BIT;
      }
-    cfg->host_caps |= MMC_MODE_HS | MMC_MODE_HS_52MHz;
+    /* Temp workaround for Chromebook snow to avoid the 'unable to select a mode' error */
+//     cfg->host_caps |= MMC_MODE_HS | MMC_MODE_HS_52MHz;

      cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
  }
********************************************************************************

Once we try to select HS mode, all access to SD card result in failure, even when trying to setup a lower frequency mode, including SD legacy at 25 MHz.

Any idea what is going? Maybe you have fixes pending?


Guillaume

^ permalink raw reply related	[flat|nested] 14+ messages in thread
* [U-Boot] [U-Boot, BUG] snow: mmc: SD card access broken: unable to select a mode
@ 2018-10-23  7:17 Paweł Jarosz
  0 siblings, 0 replies; 14+ messages in thread
From: Paweł Jarosz @ 2018-10-23  7:17 UTC (permalink / raw)
  To: u-boot

Hi Guillaume,
<https://patchwork.ozlabs.org/project/uboot/list/?submitter=64683>

Could you test this patch:

https://patchwork.ozlabs.org/patch/986180/

and tell me how it goes?


Cheers

Paweł

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-10-23  7:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-09 12:02 [U-Boot] [BUG] snow: mmc: SD card access broken: unable to select a mode Guillaume Gardet
2018-04-09 13:58 ` Jean-Jacques Hiblot
2018-04-09 14:03   ` Guillaume Gardet
2018-04-09 14:21     ` Jean-Jacques Hiblot
2018-04-09 14:46       ` Guillaume Gardet
2018-04-09 15:18         ` Jean-Jacques Hiblot
2018-04-09 16:02           ` Guillaume Gardet
2018-04-09 16:29             ` Guillaume Gardet
2018-04-10  5:24               ` Anand Moon
     [not found] ` <CGME20180426103106epcas1p106acee25ea8ae693cebe1d14f46c6ba9@epcas1p1.samsung.com>
2018-04-26 10:31   ` [U-Boot] [U-Boot, BUG] " Jaehoon Chung
2018-04-26 13:15     ` Guillaume Gardet
2018-05-16  7:22       ` Guillaume Gardet
2018-10-15 12:12         ` Guillaume Gardet
2018-10-23  7:17 Paweł Jarosz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.