mmc: Fixes for Dual Data Rate (DDR) support
authorAdrian Hunter <adrian.hunter@nokia.com>
Tue, 24 Aug 2010 10:20:26 +0000 (13:20 +0300)
committerChris Ball <cjb@laptop.org>
Sat, 23 Oct 2010 13:11:16 +0000 (21:11 +0800)
commit0f8d8ea64ec7c77ca5beb59534d386fe0235961a
tree8d6aebd250897aa33cb166994720497f40a9aaa6
parentdfc13e8402c75e7c2e0a52e123c0500a3259866b
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>
drivers/mmc/card/block.c
drivers/mmc/card/mmc_test.c
drivers/mmc/core/bus.c
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/core/mmc.c
include/linux/mmc/core.h
include/linux/mmc/host.h