summaryrefslogtreecommitdiff
path: root/include/dwmmc.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2018-11-06 23:42:11 +0100
committerTom Rini <trini@konsulko.com>2018-11-10 08:16:30 -0500
commit26cc40d8c4aaa8bd69055fb00d0737332661a879 (patch)
tree4852eb0280919a3cc29415cf8cd4a0c51e4c96a1 /include/dwmmc.h
parentfb3148a2302b18860a5141d2d8d500ff7d58c0b8 (diff)
downloadu-boot-26cc40d8c4aaa8bd69055fb00d0737332661a879.tar.gz
mmc: dw_mmc: Add RCRC handling
This patch adds check for command response CRC failure. The driver is currently ignoring CRC check failure on command resposes which have CRC atteched to it, which can be potentially dangerous. Even more grueling problem happens when the command response is followed by data transfer though, as in that case, the dwmci_data_transfer() function will spin until it reaches the 240s timeout. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Heiko Stuebner <heiko@sntech.de> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'include/dwmmc.h')
-rw-r--r--include/dwmmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dwmmc.h b/include/dwmmc.h
index 0f9d51b557..4ceda5e43c 100644
--- a/include/dwmmc.h
+++ b/include/dwmmc.h
@@ -56,6 +56,7 @@
#define DWMCI_INTMSK_DTO (1 << 3)
#define DWMCI_INTMSK_TXDR (1 << 4)
#define DWMCI_INTMSK_RXDR (1 << 5)
+#define DWMCI_INTMSK_RCRC (1 << 6)
#define DWMCI_INTMSK_DCRC (1 << 7)
#define DWMCI_INTMSK_RTO (1 << 8)
#define DWMCI_INTMSK_DRTO (1 << 9)