Tool/software: Linux
Hi,
Our Customer is using the Device : DM8127, SDK : IPNCSDK_3.8.0 and Linux version 2.6
Our issue is a late time out of bad sd card.
So we reviewed the omap_hsmmc.c(mmc driver) of Linux version 2.6 for DM8127 and omap_hsmmc.c of lately kernel version 4.4 for AM335x.
The dto = 14 code was deleted from the set_data_timeout function in omap_hsmmc.c in recently kernel version 4.4 .
We want to delete the dto= 14 code because our issue is a late time out event of bad sd card.
Is there a Issue if the dto = 14 code is deleted from the set_data_timeout function ?
And Is there a reason that the dto = 14 code wae deleted from the set_data_timeout function ?
the omap_hsmmc.c(mmc driver) code of Linux version 2.6 :
static void set_data_timeout(struct omap_hsmmc_host *host,
unsigned int timeout_ns,
unsigned int timeout_clks)
{
unsigned int timeout, cycle_ns;
uint32_t reg, clkd, dto = 0;
reg = OMAP_HSMMC_READ(host->base, SYSCTL);
clkd = (reg & CLKD_MASK) >> CLKD_SHIFT;
if (clkd == 0)
clkd = 1;
. .......
........
if (dto > 14)
dto = 14;
}
/* Use 14 by default because this seems
to work will with all cards */
dto = 14;
reg &= ~DTO_MASK;
reg |= dto << DTO_SHIFT;
OMAP_HSMMC_WRITE(host->base, SYSCTL, reg);