mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: Kyoungil Kim <[email protected]> Acked-by: Shashidhar Hiremath <[email protected]> Acked-by: Will Newton <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
680f1b5b21
commit
705ad0472b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue