Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc-atmel: remove linux/mmc/protocol.h dependencies

Fix compilation error by removing command decoding from at91_mci.c driver.
Decoding commands in the host driver is the wrong way.

Signed-off-by: Marc Pignat <marc.pignat@hevs.ch>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

authored by

Marc Pignat and committed by
Pierre Ossman
b6cedb38 5ecd3100

+2 -3
+2 -3
drivers/mmc/host/at91_mci.c
··· 417 417 blocks = 0; 418 418 } 419 419 420 - if (cmd->opcode == MMC_STOP_TRANSMISSION) 420 + if (host->flags & FL_SENT_STOP) 421 421 cmdr |= AT91_MCI_TRCMD_STOP; 422 422 423 423 if (host->bus_mode == MMC_BUSMODE_OPENDRAIN) ··· 563 563 if (status & (AT91_MCI_RINDE | AT91_MCI_RDIRE | AT91_MCI_RCRCE | 564 564 AT91_MCI_RENDE | AT91_MCI_RTOE | AT91_MCI_DCRCE | 565 565 AT91_MCI_DTOE | AT91_MCI_OVRE | AT91_MCI_UNRE)) { 566 - if ((status & AT91_MCI_RCRCE) && 567 - ((cmd->opcode == MMC_SEND_OP_COND) || (cmd->opcode == SD_APP_OP_COND))) { 566 + if ((status & AT91_MCI_RCRCE) && !(mmc_resp_type(cmd) & MMC_RSP_CRC)) { 568 567 cmd->error = MMC_ERR_NONE; 569 568 } 570 569 else {