diff options
author | Adrian Hunter <adrian.hunter@nokia.com> | 2010-08-24 06:20:26 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-10-23 09:11:16 -0400 |
commit | 0f8d8ea64ec7c77ca5beb59534d386fe0235961a (patch) | |
tree | 8d6aebd250897aa33cb166994720497f40a9aaa6 /drivers/mmc/card/mmc_test.c | |
parent | dfc13e8402c75e7c2e0a52e123c0500a3259866b (diff) |
mmc: Fixes for Dual Data Rate (DDR) support
The DDR support patch needs the following fixes:
- The block driver does not need to know about DDR, any more
than it needs to know about bus width.
- Not only the card must be switched to DDR mode. The host
controller must also be configured, which is done through
the 'set_ios()' function.
- Do not set the DDR mode state until after the switch command
is successful.
- Setting block length is not supported in DDR mode. Make that
a core function and change the other place it is used (mmc_test)
also.
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/card/mmc_test.c')
-rw-r--r-- | drivers/mmc/card/mmc_test.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index c38a3a84a45..21adc27f413 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c | |||
@@ -155,17 +155,7 @@ struct mmc_test_card { | |||
155 | */ | 155 | */ |
156 | static int mmc_test_set_blksize(struct mmc_test_card *test, unsigned size) | 156 | static int mmc_test_set_blksize(struct mmc_test_card *test, unsigned size) |
157 | { | 157 | { |
158 | struct mmc_command cmd; | 158 | return mmc_set_blocklen(test->card, size); |
159 | int ret; | ||
160 | |||
161 | cmd.opcode = MMC_SET_BLOCKLEN; | ||
162 | cmd.arg = size; | ||
163 | cmd.flags = MMC_RSP_R1 | MMC_CMD_AC; | ||
164 | ret = mmc_wait_for_cmd(test->card->host, &cmd, 0); | ||
165 | if (ret) | ||
166 | return ret; | ||
167 | |||
168 | return 0; | ||
169 | } | 159 | } |
170 | 160 | ||
171 | /* | 161 | /* |