-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Pierre Ossman
committed
May 1, 2007
1 parent
89a73cf
commit 6abaa0c
Showing
6 changed files
with
444 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# MMC core configuration | ||
# | ||
|
||
config MMC_UNSAFE_RESUME | ||
bool "Allow unsafe resume (DANGEROUS)" | ||
depends on MMC != n | ||
help | ||
If you say Y here, the MMC layer will assume that all cards | ||
stayed in their respective slots during the suspend. The | ||
normal behaviour is to remove them at suspend and | ||
redetecting them at resume. Breaking this assumption will | ||
in most cases result in data corruption. | ||
|
||
This option is usually just for embedded systems which use | ||
a MMC/SD card for rootfs. Most people should say N here. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.