[PATCH 13/14] mmc: bcm2835: Use MMC_SEND_OP_COND instead of number
Stefan Wahren
stefan.wahren at i2se.com
Sat Jan 7 04:51:13 PST 2017
Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
---
drivers/mmc/host/bcm2835.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c
index d1ba862..dcddf5c 100644
--- a/drivers/mmc/host/bcm2835.c
+++ b/drivers/mmc/host/bcm2835.c
@@ -849,7 +849,7 @@ static void bcm2835_finish_command(struct bcm2835_host *host,
writel(SDHSTS_ERROR_MASK, host->ioaddr + SDHSTS);
if (!(sdhsts & SDHSTS_CRC7_ERROR) ||
- (host->cmd->opcode != 1)) {
+ (host->cmd->opcode != MMC_SEND_OP_COND)) {
if (sdhsts & SDHSTS_CMD_TIME_OUT) {
host->cmd->error = -ETIMEDOUT;
} else {
--
1.7.9.5
More information about the linux-rpi-kernel
mailing list