diff options
author | wwang | 2011-07-05 05:07:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-07-06 04:54:58 +0200 |
commit | 2b4baab313fefc4eaef7a034f5ff8c8c08a48daf (patch) | |
tree | ff554ba46446b1a788aebd835ddae9397894d159 /drivers/staging/rts_pstor/sd.h | |
parent | MAINTAINERS: Add remaining staging entries (diff) | |
download | kernel-qcow2-linux-2b4baab313fefc4eaef7a034f5ff8c8c08a48daf.tar.gz kernel-qcow2-linux-2b4baab313fefc4eaef7a034f5ff8c8c08a48daf.tar.xz kernel-qcow2-linux-2b4baab313fefc4eaef7a034f5ff8c8c08a48daf.zip |
staging: rts_pstor: Fix a bug that a MMCPlus card can't be accessed
1. Don't switch bus if cmd14 timedout
2. Add a new group of return codes for mmc_test_switch_bus
Signed-off-by: wwang <wei_wang@realsil.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rts_pstor/sd.h')
-rw-r--r-- | drivers/staging/rts_pstor/sd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/rts_pstor/sd.h b/drivers/staging/rts_pstor/sd.h index d62e690e963f..1df1aa75e93a 100644 --- a/drivers/staging/rts_pstor/sd.h +++ b/drivers/staging/rts_pstor/sd.h @@ -38,6 +38,11 @@ #define SD_RSP_TIMEOUT 0x04 #define SD_IO_ERR 0x02 +/* Return code for MMC switch bus */ +#define SWITCH_SUCCESS 0 +#define SWITCH_ERR 1 +#define SWITCH_FAIL 2 + /* MMC/SD Command Index */ /* Basic command (class 0) */ #define GO_IDLE_STATE 0 |