[PATCH 02/18] mmc: tegra: fix typo
Lucas Stach
dev at lynxeye.de
Sun Apr 13 06:27:32 PDT 2014
Missed OR, so we never enabled failure interrupt
status bits, which prevented the eMMC detect logic
to work properly.
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
drivers/mci/tegra-sdmmc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mci/tegra-sdmmc.c b/drivers/mci/tegra-sdmmc.c
index 64c4550754b9..e4d82197bde7 100644
--- a/drivers/mci/tegra-sdmmc.c
+++ b/drivers/mci/tegra-sdmmc.c
@@ -339,7 +339,7 @@ static int tegra_sdmmc_init(struct mci_host *mci, struct device_d *dev)
val = readl(regs + TEGRA_SDMMC_INT_STAT_EN);
val &= ~(0xffff);
- val = (TEGRA_SDMMC_INT_STAT_EN_CMD_COMPLETE |
+ val |= (TEGRA_SDMMC_INT_STAT_EN_CMD_COMPLETE |
TEGRA_SDMMC_INT_STAT_EN_XFER_COMPLETE |
TEGRA_SDMMC_INT_STAT_EN_DMA_INTERRUPT |
TEGRA_SDMMC_INT_STAT_EN_BUFFER_WRITE_READY |
@@ -348,7 +348,7 @@ static int tegra_sdmmc_init(struct mci_host *mci, struct device_d *dev)
val = readl(regs + TEGRA_SDMMC_INT_SIG_EN);
val &= ~(0xffff);
- val = TEGRA_SDMMC_INT_SIG_EN_XFER_COMPLETE;
+ val |= TEGRA_SDMMC_INT_SIG_EN_XFER_COMPLETE;
writel(val, regs + TEGRA_SDMMC_INT_SIG_EN);
tegra_sdmmc_set_clock(host, 400000);
--
1.9.0
More information about the barebox
mailing list