From: Haavard Skinnemoen Date: Thu, 22 May 2008 10:28:25 +0000 (+0200) Subject: avr32: Fix wrong error flags in atmel_mci driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e92a5bf8330654e33ac13f6b3058634e58f5d1c0;p=project%2Fbcm63xx%2Fu-boot.git avr32: Fix wrong error flags in atmel_mci driver Make sure we check for CRC errors when sending commands that use CRC checking. Reported-by: Gururaja Hebbar K R Signed-off-by: Haavard Skinnemoen --- diff --git a/cpu/at32ap/atmel_mci.c b/cpu/at32ap/atmel_mci.c index 3ce9ea5323..226b5c045f 100644 --- a/cpu/at32ap/atmel_mci.c +++ b/cpu/at32ap/atmel_mci.c @@ -139,7 +139,7 @@ mmc_cmd(unsigned long cmd, unsigned long arg, pr_debug("mmc: status 0x%08lx\n", status); - if (status & ERROR_FLAGS) { + if (status & error_flags) { printf("mmc: command %lu failed (status: 0x%08lx)\n", cmd, status); return -EIO;