/* cmd->resp holds any four-byte response, for R3 (READ_OCR) and on newer cards R7 (IF_COND).  */
static char* maptype(struct mmc_command *cmd)
/* cmd->resp holds any four-byte response, for R3 (READ_OCR) and on newer cards R7 (IF_COND).  */
static char* maptype(struct mmc_command *cmd)
{
	switch (mmc_spi_resp_type(cmd)) {
	case MMC_RSP_SPI_R1:	return "R1";
	case MMC_RSP_SPI_R1B:	return "R1B";
	case MMC_RSP_SPI_R2:	return "R2/R5";
	case MMC_RSP_SPI_R3:	return "R3/R4/R7";
	default:		return "?";
	}
}