diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-05-22 12:28:25 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-05-27 15:27:31 +0200 |
commit | e92a5bf8330654e33ac13f6b3058634e58f5d1c0 (patch) | |
tree | 18560b1186714af8b72ab0a9fe675cb9811907d0 /cpu/at32ap | |
parent | 7a96ddadd13e6ac9a829affce9b6f8823f580e49 (diff) | |
download | u-boot-imx-e92a5bf8330654e33ac13f6b3058634e58f5d1c0.zip u-boot-imx-e92a5bf8330654e33ac13f6b3058634e58f5d1c0.tar.gz u-boot-imx-e92a5bf8330654e33ac13f6b3058634e58f5d1c0.tar.bz2 |
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 <gururajakr@sanyo.co.in>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'cpu/at32ap')
-rw-r--r-- | cpu/at32ap/atmel_mci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/at32ap/atmel_mci.c b/cpu/at32ap/atmel_mci.c index 3ce9ea5..226b5c0 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; |