]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
avr32: Fix wrong error flags in atmel_mci driver
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Thu, 22 May 2008 10:28:25 +0000 (12:28 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Tue, 27 May 2008 13:27:31 +0000 (15:27 +0200)
Make sure we check for CRC errors when sending commands that use CRC
checking.

Reported-by: Gururaja Hebbar K R <gururajakr@sanyo.co.in>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
cpu/at32ap/atmel_mci.c

index 3ce9ea532316fdceb386ebf5cfde81447e09a7ec..226b5c045fff15668c445445ca3ccf49ddb26712 100644 (file)
@@ -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;