Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 705ad047 authored by Kyoungil Kim's avatar Kyoungil Kim Committed by Chris Ball
Browse files

mmc: dw_mmc: Fixed sdio interrupt mask bit setting bug



The sdio interrupt mask bits are arranged in [31:16].
(1 << SDMMC_INT_SDIO(slot->id))) does 16 bits left shift twice.
So this patch changes to do 16 bits left shift only one time.

Signed-off-by: default avatarKyoungil Kim <ki0351.kim@samsung.com>
Acked-by: default avatarShashidhar Hiremath <shashidharh@vayavyalabs.com>
Acked-by: default avatarWill Newton <will.newton@imgtec.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 680f1b5b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -857,10 +857,10 @@ static void dw_mci_enable_sdio_irq(struct mmc_host *mmc, int enb)
	int_mask = mci_readl(host, INTMASK);
	if (enb) {
		mci_writel(host, INTMASK,
			   (int_mask | (1 << SDMMC_INT_SDIO(slot->id))));
			   (int_mask | SDMMC_INT_SDIO(slot->id)));
	} else {
		mci_writel(host, INTMASK,
			   (int_mask & ~(1 << SDMMC_INT_SDIO(slot->id))));
			   (int_mask & ~SDMMC_INT_SDIO(slot->id)));
	}
}