From 4587f53a582c9ab0bd908cff590755bfc03fced4 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Thu, 28 Jul 2016 14:26:24 +0900 Subject: [PATCH] mmc: dw_mmc: fix the wrong Mask bit boundary for fifo_count bit According to DesignWare TRM, FIFO_COUNT is bit[29:17]. If get the correct fifo_count value, it has to use the FIFO_MASK as 0x1FFF, not 0x1FF. Signed-off-by: Jaehoon Chung Reviewed-by: Ziyuan Xu --- include/dwmmc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dwmmc.h b/include/dwmmc.h index d18ec8463b..5b9602cd05 100644 --- a/include/dwmmc.h +++ b/include/dwmmc.h @@ -105,7 +105,7 @@ /* Status Register */ #define DWMCI_BUSY (1 << 9) -#define DWMCI_FIFO_MASK 0x1ff +#define DWMCI_FIFO_MASK 0x1fff #define DWMCI_FIFO_SHIFT 17 /* FIFOTH Register */ -- 2.39.5