Commit a0309bbd authored by Russell King's avatar Russell King

[MMC] MMCI: Remove hardcoded MCI_IRQMASK definition

parent 0416f422
...@@ -268,11 +268,9 @@ static irqreturn_t mmci_irq(int irq, void *dev_id, struct pt_regs *regs) ...@@ -268,11 +268,9 @@ static irqreturn_t mmci_irq(int irq, void *dev_id, struct pt_regs *regs)
struct mmc_data *data; struct mmc_data *data;
status = readl(host->base + MMCISTATUS); status = readl(host->base + MMCISTATUS);
status &= readl(host->base + MMCIMASK0);
writel(status, host->base + MMCICLEAR); writel(status, host->base + MMCICLEAR);
if (!(status & MCI_IRQMASK))
break;
DBG(host, "irq0 %08x\n", status); DBG(host, "irq0 %08x\n", status);
data = host->data; data = host->data;
......
...@@ -103,11 +103,6 @@ ...@@ -103,11 +103,6 @@
#define MMCIFIFOCNT 0x048 #define MMCIFIFOCNT 0x048
#define MMCIFIFO 0x080 /* to 0x0bc */ #define MMCIFIFO 0x080 /* to 0x0bc */
#define MCI_IRQMASK \
(MCI_CMDCRCFAIL|MCI_DATACRCFAIL|MCI_CMDTIMEOUT|MCI_DATATIMEOUT| \
MCI_TXUNDERRUN|MCI_RXOVERRUN|MCI_CMDRESPEND|MCI_CMDSENT| \
MCI_DATAEND|MCI_DATABLOCKEND)
#define MCI_IRQENABLE \ #define MCI_IRQENABLE \
(MCI_CMDCRCFAILMASK|MCI_DATACRCFAILMASK|MCI_CMDTIMEOUTMASK| \ (MCI_CMDCRCFAILMASK|MCI_DATACRCFAILMASK|MCI_CMDTIMEOUTMASK| \
MCI_DATATIMEOUTMASK|MCI_TXUNDERRUNMASK|MCI_RXOVERRUNMASK| \ MCI_DATATIMEOUTMASK|MCI_TXUNDERRUNMASK|MCI_RXOVERRUNMASK| \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment