···351 case MMC_RSP_R3: /* short */352 cmdat |= CMD_DAT_CONT_RESPONSE_FORMAT_R3;353 break;354- case MMC_RSP_R6: /* short CRC */355- cmdat |= CMD_DAT_CONT_RESPONSE_FORMAT_R6;356- break;357 default:358 break;359 }
···351 case MMC_RSP_R3: /* short */352 cmdat |= CMD_DAT_CONT_RESPONSE_FORMAT_R3;353 break;000354 default:355 break;356 }
+9-6
drivers/mmc/omap.c
···919293#define DRIVER_NAME "mmci-omap"94-#define RSP_TYPE(x) ((x) & ~(MMC_RSP_BUSY|MMC_RSP_OPCODE))9596/* Specifies how often in millisecs to poll for card status changes97 * when the cover switch is open */···203 cmdtype = 0;204205 /* Our hardware needs to know exact type */206- switch (RSP_TYPE(mmc_resp_type(cmd))) {207- case RSP_TYPE(MMC_RSP_R1):208- /* resp 1, resp 1b */000209 resptype = 1;210 break;211- case RSP_TYPE(MMC_RSP_R2):212 resptype = 2;213 break;214- case RSP_TYPE(MMC_RSP_R3):215 resptype = 3;216 break;217 default:0218 break;219 }220
···919293#define DRIVER_NAME "mmci-omap"09495/* Specifies how often in millisecs to poll for card status changes96 * when the cover switch is open */···204 cmdtype = 0;205206 /* Our hardware needs to know exact type */207+ switch (mmc_resp_type(cmd)) {208+ case MMC_RSP_NONE:209+ break;210+ case MMC_RSP_R1:211+ case MMC_RSP_R1B:212+ /* resp 1, 1b, 6, 7 */213 resptype = 1;214 break;215+ case MMC_RSP_R2:216 resptype = 2;217 break;218+ case MMC_RSP_R3:219 resptype = 3;220 break;221 default:222+ dev_err(mmc_dev(host->mmc), "Invalid response type: %04x\n", mmc_resp_type(cmd));223 break;224 }225