Hi,
I work on our platfrom based on DM3730.
I tested a SD card 32GB class 10.
When I fomarted this sdcard in ext4, I have an error. The DTO (Data timeout) is reached.
So, I patch your kernel 2.6.37 :
===================================================================
--- drivers/mmc/host/omap_hsmmc.c (révision 17715)
+++ drivers/mmc/host/omap_hsmmc.c (copie de travail)
@@ -1473,7 +1473,6 @@
clkd = (reg & CLKD_MASK) >> CLKD_SHIFT;
if (clkd == 0)
clkd = 1;
-
cycle_ns = 1000000000 / (clk_get_rate(host->fclk) / clkd);
timeout = timeout_ns / cycle_ns;
timeout += timeout_clks;
@@ -1493,6 +1492,10 @@
if (dto > 14)
dto = 14;
}
+
+ // workaround
+ if(dto<DTO)
+ dto = dto + 1;
reg &= ~DTO_MASK;
reg |= dto << DTO_SHIFT;
This patch multiply the dto by 2.
Do you known this issue?
With which caracteristic of the SDCard could I determine the DTO?
Thanks,
Yoann