Skip to contentSkip to conversation

mmc: dw_mmc: fixed wrong bit operation for SDMMC_GET_FCNT()

PATCH Applied Jaehoon Chung 3 participants 3 messages Jan 5, 2012

Subsystems (2)
lore
Share & tools
lore

Jaehoon Chung

author maintainer
#0 lore raw

PATCH 1/1 mmc: dw_mmc: fixed wrong bit operation for SDMMC_GET_FCNT()

In status register, fifo_count is bit[29:17].
(0x1FFF is correctly)

---
 drivers/mmc/host/dw_mmc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/dw_mmc.h +1 -1
index 72c071f..df392a1 100644
@@ -126,7 +126,7 @@
 #define SDMMC_CMD_RESP_EXP		BIT(6)
 #define SDMMC_CMD_INDX(n)		((n) & 0x1F)
 /* Status register defines */
-#define SDMMC_GET_FCNT(x)		(((x)>>17) & 0x1FF)
+#define SDMMC_GET_FCNT(x)		(((x)>>17) & 0x1FFF)
 /* Internal DMAC interrupt defines */
 #define SDMMC_IDMAC_INT_AI		BIT(9)
 #define SDMMC_IDMAC_INT_NI		BIT(8)
Applied
#2 lore raw

Hi,

Quoted 10 lines · Will Newton
Quoted 8 lines · Jaehoon Chung

In status register, fifo_count is bit[29:17].
(0x1FFF is correctly)

---
 drivers/mmc/host/dw_mmc.h |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 3 lines

Good catch, thanks!

Pushed to mmc-next for 3.3, thanks.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child