All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to access mounted sd card partition on resume from hibernate
@ 2014-06-13  7:07 AYAN KUMAR HALDER
  2014-06-13 13:52 ` Valdis.Kletnieks at vt.edu
  0 siblings, 1 reply; 3+ messages in thread
From: AYAN KUMAR HALDER @ 2014-06-13  7:07 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Unable to access mounted sd card partition on resume from hibernate
  2014-06-13  7:07 Unable to access mounted sd card partition on resume from hibernate AYAN KUMAR HALDER
@ 2014-06-13 13:52 ` Valdis.Kletnieks at vt.edu
  2014-06-13 15:38   ` AYAN KUMAR HALDER
  0 siblings, 1 reply; 3+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-06-13 13:52 UTC (permalink / raw)
  To: kernelnewbies

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....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140613/05ca8bd4/attachment.bin 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Unable to access mounted sd card partition on resume from hibernate
  2014-06-13 13:52 ` Valdis.Kletnieks at vt.edu
@ 2014-06-13 15:38   ` AYAN KUMAR HALDER
  0 siblings, 0 replies; 3+ messages in thread
From: AYAN KUMAR HALDER @ 2014-06-13 15:38 UTC (permalink / raw)
  To: kernelnewbies

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-13 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-13  7:07 Unable to access mounted sd card partition on resume from hibernate AYAN KUMAR HALDER
2014-06-13 13:52 ` Valdis.Kletnieks at vt.edu
2014-06-13 15:38   ` AYAN KUMAR HALDER

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.