This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

process hangs when sd card is removed while io operation

Hi.

I use a custom board with dm8148. I noticed that sometimes during io operation with sd card the process hangs. It hangs that way so ctrl+c cannot stop process. The last messages from mmc driver are

mmc0: starting CMD13 arg 47f70000 flags 00000015
mmci-omap-hs mmci-omap-hs.0: mmc0: CMD13, argument 0x47f70000
mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1, 0
mmc0: req done (CMD13): 0: 00000900 00000000 00000000 00000000
mmc0: starting CMD25 arg 006ca000 flags 000000b5
mmc0:     blksz 512 blocks 8 flags 00000100 tsac 300 ms nsac 0
mmc0:     CMD12 arg 00000000 flags 0000049d
mmci-omap-hs mmci-omap-hs.0: mmc0: CMD25, argument 0x006ca000
mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1, 0
mmci-omap-hs mmci-omap-hs.0: IRQ Status is 80, 0


So i guessed that it informs that it sufferes card remove. Nevetheless i cannot find where it hangs. Has anyone encountered this behavior?

I use ezsdk 5_04_00_11.

Best regards,

Alexander Vasiljev.

  • Alexander,

    This could be the issue with card detect support on DM814x. Can you see whether the card can be hot-plugged first? If that is supported, then it might be only with card removal. For that can you put a printk inside the card detect thread inside mmc driver and see whether it gets called when the card is removed.