Re: eMMC sector/byte access mode validation

2011-01-04 Thread Ethan Du
Hi: I have not seen case (1) and (2) across >20 types of micro SD cards, and >10 types of Sandisk/Toshiba eMMC chips, so I believe the 2GB condition is ok. Probing of the OCR bit to chose between byte and sector mode will also work, which I have tried in a large scope. Regards, -Ethan On W

Re: [PATCH] MMC: name mmc queue thread by host index

2010-09-29 Thread Ethan Du
Anyone interested? It always takes time to identify a problem with several processes all named mmcqd there On Sun, Sep 26, 2010 at 4:34 PM, Ethan Du wrote: > Usually there are multiple mmc host controllers, rename mmc queue thread >     by host index, so we can easily identify which cont

[PATCH v2] MMC: Refine block layer waiting for card state

2010-09-28 Thread Ethan Du
iting loop in case of error * should break out from the waiting loop, if card response with error * should break out from the waiting loop when timeout These will not help with the card, one more thing to do: * re-init the card in case of too many errors Signed-off-by: Ethan Du --- Changes

Re: [PATCH] MMC: Refine block layer waiting for card state

2010-09-28 Thread Ethan Du
Hi On Tue, Sep 28, 2010 at 2:51 PM, Adrian Hunter wrote: > On 27/09/10 06:32, Ethan Du wrote: >> >>     The while loop when handling rw request may become deadloop in >> case of bad card >>     I've seen mmcqd gets blocked forever after a single error message: &

[PATCH] MMC: Refine block layer waiting for card state

2010-09-26 Thread Ethan Du
iting loop in case of error * should break out from the waiting loop, if card response with error * should break out from the waiting loop when timeout These will not help with the card, one more thing to do: * re-init the card in case of too many errors Signed-off-by: Ethan Du --- driver

[PATCH] mmc: name mmc queue thread by host index

2010-09-26 Thread Ethan Du
Usually there are multiple mmc host controllers, rename mmc queue thread by host index, so we can easily identify which controller it belongs to Signed-off-by: Ethan Du --- drivers/mmc/card/queue.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/card

Re: SD Driver : FAT: FAT read failed (blocknr 8) in sd card error while removing sd card during writing

2010-07-08 Thread Ethan Du
Card removal not detected by driver? You should see a line of log if card removal is detected: card removed Would you describe how do you detect card removal/insertion on your board? Regards, -Ethan On Thu, Jul 8, 2010 at 6:05 PM, hardik patel wrote: > I have sd card on board ... During re

[PATCH] OMAP HSMMC: fix a racing case between kmmcd and omap_hsmmc_suspend

2010-06-21 Thread Ethan Du
If suspend called when kmmcd is doing host->ops->disable, as kmmcd already increased host->en_dis_recurs to 1, the mmc_host_enable in suspend function will return directly without increase the nesting_cnt, which will cause the followed register access carried out to the disabled host. mmc_suspend_