From 7997599e2df64c8fb450bc03f2d618adbde05f6e Mon Sep 17 00:00:00 2001 From: Ley Foon Tan Date: Thu, 20 Dec 2018 17:55:41 +0800 Subject: mmc: dwmmc: Poll for iDMAC TX/RX interrupt Poll for iDMAC TX/RX interrupt before disable DMA. This to prevent disable DMA before data is transfer completed. Signed-off-by: Ley Foon Tan --- include/dwmmc.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/dwmmc.h') diff --git a/include/dwmmc.h b/include/dwmmc.h index 4ceda5e43c5..f06720dc0d9 100644 --- a/include/dwmmc.h +++ b/include/dwmmc.h @@ -130,6 +130,13 @@ /* UHS register */ #define DWMCI_DDR_MODE (1 << 16) +/* Internal IDMAC interrupt defines */ +#define DWMCI_IDINTEN_RI BIT(1) +#define DWMCI_IDINTEN_TI BIT(0) + +#define DWMCI_IDINTEN_MASK (DWMCI_IDINTEN_TI | \ + DWMCI_IDINTEN_RI) + /* quirks */ #define DWMCI_QUIRK_DISABLE_SMU (1 << 0) -- cgit v1.2.3