Commit e450521a authored by Carlos Aguiar's avatar Carlos Aguiar Committed by Tony Lindgren

MMC: Update omap response types

This patch is a fix in order to update MMC response types.
This modification is needed to allow SD card support on OMAP platforms.
Signed-off-by: default avatarCarlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent a6f55bb5
...@@ -92,7 +92,6 @@ ...@@ -92,7 +92,6 @@
#define DRIVER_NAME "mmci-omap" #define DRIVER_NAME "mmci-omap"
#define RSP_TYPE(x) ((x) & ~(MMC_RSP_BUSY|MMC_RSP_OPCODE))
/* Specifies how often in millisecs to poll for card status changes /* Specifies how often in millisecs to poll for card status changes
* when the cover switch is open */ * when the cover switch is open */
...@@ -205,18 +204,25 @@ mmc_omap_start_command(struct mmc_omap_host *host, struct mmc_command *cmd) ...@@ -205,18 +204,25 @@ mmc_omap_start_command(struct mmc_omap_host *host, struct mmc_command *cmd)
cmdtype = 0; cmdtype = 0;
/* Our hardware needs to know exact type */ /* Our hardware needs to know exact type */
switch (RSP_TYPE(mmc_resp_type(cmd))) { switch (mmc_resp_type(cmd)) {
case RSP_TYPE(MMC_RSP_R1): case MMC_RSP_NONE:
break;
case MMC_RSP_R1:
case MMC_RSP_R1B:
/* resp 1, resp 1b */ /* resp 1, resp 1b */
resptype = 1; resptype = 1;
break; break;
case RSP_TYPE(MMC_RSP_R2): case MMC_RSP_R2:
resptype = 2; resptype = 2;
break; break;
case RSP_TYPE(MMC_RSP_R3): case MMC_RSP_R3:
resptype = 3; resptype = 3;
break; break;
case MMC_RSP_R6:
resptype = 6;
break;
default: default:
dev_err(mmc_dev(host->mmc), "Invalid response type: %04x\n", mmc_resp_type(cmd));
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment