mmc: support unsafe resume of cards
authorPierre Ossman <drzeus@drzeus.cx>
Tue, 1 May 2007 14:00:02 +0000 (16:00 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 1 May 2007 14:00:02 +0000 (16:00 +0200)
commit6abaa0c9fec563538f2a28a682af8c89bb9b125c
tree1da7fb5a0b37bd57b38ca52c77ccc72b099fcbae
parent89a73cf52ba2ae4402c53487b71ec4475544f139
mmc: support unsafe resume of cards

Since many have the system root on MMC/SD we must allow some foot
shooting when it comes to resume.

We cannot detect if a card is removed and reinserted during suspend,
so the safe approach would be to assume it was, avoiding potential
filesystem corruption. This will of course not work if you cannot
release the card before suspend.

This commit adds a compile time option that makes the MMC layer
assume the card wasn't touched if it is redetected upon resume.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/Kconfig
drivers/mmc/core/Kconfig [new file with mode: 0644]
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c