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