Unable to access mounted sd card partition on resume from hibernate
Hi All, I am working on a ARM based custom platform which has a mmc controller (by Designware.) The mmc controller driver is dw-mmc.c. On kernel bootup, I insert the driver and then I mount the mmc device on /mnt. I am able to perform file-system operation(ls, cp, mv, rm) on /mnt. Then without unmount, I hibernate my board (echo disk > /sys/power/state). On resuming, when I try to access /mnt , I get errors as follows:- # ls /mnt/ [ 201.509858] FAT-fs (mmcblk0): Directory bread(block 32768) failed [ 201.516045] FAT-fs (mmcblk0): Directory bread(block 32769) failed [ 201.522163] FAT-fs (mmcblk0): Directory bread(block 32770) failed [ 201.528301] FAT-fs (mmcblk0): Directory bread(block 32771) failed [ 201.534404] FAT-fs (mmcblk0): Directory bread(block 32772) failed [ 201.540531] FAT-fs (mmcblk0): Directory bread(block 32773) failed [ 201.546658] FAT-fs (mmcblk0): Directory bread(block 32774) failed Please tell me the reason for such errors. When I do the same sequence of operations for a usb device, I do not get such errors. I am able to access(after resume) the mounted partition of usb device normally. Regards, Ayan Kumar Halder
On Fri, 13 Jun 2014 12:37:18 +0530, AYAN KUMAR HALDER said:
[ 201.509858] FAT-fs (mmcblk0): Directory bread(block 32768) failed
That smells suspiciously like the driver failing to properly re-init the card when powering back up from a resume....
On Fri, Jun 13, 2014 at 7:22 PM, <Valdis.Kletnieks@vt.edu> wrote:
On Fri, 13 Jun 2014 12:37:18 +0530, AYAN KUMAR HALDER said:
[ 201.509858] FAT-fs (mmcblk0): Directory bread(block 32768) failed
That smells suspiciously like the driver failing to properly re-init the card when powering back up from a resume....
I forgot to add that on resuming, when I access /mnt partition , I get the "FAT-fs" errors as described above. Then I umount and mount the mmc device, I am able to access the mounted device. But my question still remains as why the mounted partition of mmc is in-accessible on resume and why does it become accessible when I unmount and remount the mmc.
participants (2)
-
AYAN KUMAR HALDER -
Valdis.Kletnieks@vt.edu