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

2010-07-13 Thread hardik patel
Find below diff : --- queue.c 2010-07-13 13:52:53.0 +0530 +++ queue_2_6_34.c 2010-07-13 13:54:35.0 +0530 @@ -236,17 +236,18 @@ void mmc_cleanup_queue(struct mmc_queue struct request_queue *q = mq->queue; unsigned long flags; - /* Mark that we should

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

2010-07-12 Thread MADHAV SINGHCHAUHAN
Hi Madhav, I have change the card remove sequence as per latest kernel source 2.6.34 after changing this i face the same issue is there any way to check card detect status at block layer ? or any other way to avoid it >>Can i see your changes made by you..paste your diff here..

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

2010-07-12 Thread hardik patel
Hi Madhav, I have change the card remove sequence as per latest kernel source 2.6.34 after changing this i face the same issue is there any way to check card detect status at block layer ? or any other way to avoid it After removing card when i execute any command on board then

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

2010-07-12 Thread MADHAV SINGHCHAUHAN
I am using 2.6.30 linux kernel version ... >>As i told you previously that you need to flush queue as soon as possible >>once you remove the card. So once you remove card mmc_blk_remove() gets called which calls mmc_cleanup_queue() and it further intenally calls kthread_stop()(stops thread w

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

2010-07-08 Thread hardik patel
I am using 2.6.30 linux kernel version ... On Fri, Jul 9, 2010 at 9:20 AM, Madhav Chauhan wrote: > On Thu, Jul 8, 2010 at 11:38 PM, hardik patel wrote: >> Hi Madhav, >> >> thanks for your interest... I have card detect register so mmc_get_cd >> function i can check whether card is inserted or no

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

2010-07-08 Thread Madhav Chauhan
On Thu, Jul 8, 2010 at 11:38 PM, hardik patel wrote: > Hi Madhav, > > thanks for your interest... I have card detect register so mmc_get_cd > function i can check whether card is inserted or not ... so in sd host > controller driver can detect that properly... but i think block driver > does not d

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

2010-07-08 Thread hardik patel
Hi Madhav, thanks for your interest... I have card detect register so mmc_get_cd function i can check whether card is inserted or not ... so in sd host controller driver can detect that properly... but i think block driver does not detect that where i have to flush my request queue... i have

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

2010-07-08 Thread MADHAV SINGHCHAUHAN
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 ... Du

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