Skip to contentSkip to conversation

mmc: atmel_sdhci: Enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD

PATCH Superseded Wenyou Yang 3 participants 3 messages May 10, 2017 – May 11, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: atmel_sdhci: Enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD

To fix the timeout of sending the write command, enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD.

---

 drivers/mmc/atmel_sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/atmel_sdhci.c +1 -1
index 852255782f..25f4559f24 100644
@@ -74,7 +74,7 @@ static int atmel_sdhci_probe(struct udevice *dev)
 	host->name = dev->name;
 	host->ioaddr = (void *)dev_get_addr(dev);
 
-	host->quirks = 0;
+	host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD;
 	host->bus_width	= fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
 					 "bus-width", 4);
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 mmc: atmel_sdhci: Enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD

Hi Wenyou,

Quoted 2 lines · Wenyou Yang

To fix the timeout of sending the write command, enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD.

This patch is for fixing timeout error, doesn't need to set quirk into atmel_sdhci_init()?

Best Regards,
Jaehoon Chung

Quoted 21 lines

---

 drivers/mmc/atmel_sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/atmel_sdhci.c +1 -1
index 852255782f..25f4559f24 100644
@@ -74,7 +74,7 @@ static int atmel_sdhci_probe(struct udevice *dev)
 	host->name = dev->name;
 	host->ioaddr = (void *)dev_get_addr(dev);
 
-	host->quirks = 0;
+	host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD;
 	host->bus_width	= fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
 					 "bus-width", 4);
 
#2 lore raw

PATCH 1/1 mmc: atmel_sdhci: Enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD

Hi Jaehoon,

Quoted 6 lines · Jaehoon Chung

Hi Wenyou,

Quoted 2 lines · Wenyou Yang

To fix the timeout of sending the write command, enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD.

This patch is for fixing timeout error, doesn't need to set quirk into atmel_sdhci_init()?

Yes, it does.
Thank you for pointing out.

Quoted 18 lines

Best Regards,
Jaehoon Chung

Quoted 14 lines

---

  drivers/mmc/atmel_sdhci.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/atmel_sdhci.c +0 -0
index 852255782f..25f4559f24 100644
@@ -74,7 +74,7 @@ static int atmel_sdhci_probe(struct udevice *dev)
  	host->name = dev->name;
  	host->ioaddr = (void *)dev_get_addr(dev);
 
Quoted 6 lines

drivers/mmc/atmel_sdhci.c static int atmel_sdhci_probe(struct udevice *dev) · line 80

Quoted 6 lines
drivers/mmc/atmel_sdhci.c +1 -1
-	host->quirks = 0;
+	host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD;
  	host->bus_width	= fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
  					 "bus-width", 4);
 

Best Regards,
Wenyou Yang