aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2009-09-22 16:44:37 -0700
committerLinus Torvalds <[email protected]>2009-09-23 07:39:34 -0700
commitef0b27d4ccacac32afc3d1c0e8a95e4091dfbc8c (patch)
treeed507b7f505620915f96df8757f36c78fd24c6b6 /include/linux/mmc
parent53509f0fe28e049e772897aa8fa1f5183b6823a2 (diff)
mmc: check status after MMC SWITCH command
According to the standard, the SWITCH command should be followed by a SEND_STATUS command to check for errors. Signed-off-by: Adrian Hunter <[email protected]> Acked-by: Matt Fleming <[email protected]> Cc: Ian Molton <[email protected]> Cc: "Roberto A. Foglietta" <[email protected]> Cc: Jarkko Lavinen <[email protected]> Cc: Denis Karpov <[email protected]> Cc: Pierre Ossman <[email protected]> Cc: Philip Langdale <[email protected]> Cc: "Madhusudhan" <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/mmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/mmc.h b/include/linux/mmc/mmc.h
index b2b40951c16c..c02c8db73701 100644
--- a/include/linux/mmc/mmc.h
+++ b/include/linux/mmc/mmc.h
@@ -128,6 +128,7 @@
#define R1_STATUS(x) (x & 0xFFFFE000)
#define R1_CURRENT_STATE(x) ((x & 0x00001E00) >> 9) /* sx, b (4 bits) */
#define R1_READY_FOR_DATA (1 << 8) /* sx, a */
+#define R1_SWITCH_ERROR (1 << 7) /* sx, c */
#define R1_APP_CMD (1 << 5) /* sr, c */
/*