emmc/dw_mmc: fix the assert on HLE bit
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Thu, 11 Jan 2018 05:49:56 +0000 (13:49 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Thu, 11 Jan 2018 05:49:56 +0000 (13:49 +0800)
When check HLE bit in interrupt register, it should check whether
HLE bit is set, not clear.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
drivers/synopsys/emmc/dw_mmc.c

index e6904d14bac80b01e5424f7e6f713b68add69890..701e6d53dbbdc9d63291da1efb6f8dd6b4887e50 100644 (file)
@@ -146,7 +146,7 @@ static void dw_update_clk(void)
                if ((data & CMD_START) == 0)
                        break;
                data = mmio_read_32(dw_params.reg_base + DWMMC_RINTSTS);
-               assert(data & INT_HLE);
+               assert((data & INT_HLE) == 0);
        }
 }