I have built the linux-omap-pm kernel to enable some power management functions.
The problem is that sometimes when it returns from sleep mode it appears not to recognize the SD card anymore.
Then some error messages are shown, and nothing works. When rebooted it enters the SO installed on Flash.
After that I only can boot the SD by formatting it.

I know that the card is not 100% but I never had problems with that, because that is a partition isolating the damaged region.

Does somebody know how this could be handled?