Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332808
b: refs/heads/master
c: 1f6b9fa
h: refs/heads/master
v: v3
  • Loading branch information
Venkatraman S authored and Chris Ball committed Sep 4, 2012
1 parent 0e8fb10 commit 2811d0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c31b2150ff96755d24e0ab6d6fea08a7bf5c44c
refs/heads/master: 1f6b9fa40e76fffaaa0b3bd6a0bfdcf1cdc06efa
17 changes: 4 additions & 13 deletions trunk/drivers/mmc/host/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,15 +969,6 @@ static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status)
struct mmc_data *data;
int end_cmd = 0, end_trans = 0;

if (!host->req_in_progress) {
do {
OMAP_HSMMC_WRITE(host->base, STAT, status);
/* Flush posted write */
status = OMAP_HSMMC_READ(host->base, STAT);
} while (status & INT_EN_MASK);
return;
}

data = host->data;
dev_vdbg(mmc_dev(host->mmc), "IRQ Status is %x\n", status);

Expand Down Expand Up @@ -1028,8 +1019,6 @@ static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status)
}
}

OMAP_HSMMC_WRITE(host->base, STAT, status);

if (end_cmd || ((status & CC) && host->cmd))
omap_hsmmc_cmd_done(host, host->cmd);
if ((end_trans || (status & TC)) && host->mrq)
Expand All @@ -1045,11 +1034,13 @@ static irqreturn_t omap_hsmmc_irq(int irq, void *dev_id)
int status;

status = OMAP_HSMMC_READ(host->base, STAT);
do {
while (status & INT_EN_MASK && host->req_in_progress) {
omap_hsmmc_do_irq(host, status);

/* Flush posted write */
OMAP_HSMMC_WRITE(host->base, STAT, status);
status = OMAP_HSMMC_READ(host->base, STAT);
} while (status & INT_EN_MASK);
}

return IRQ_HANDLED;
}
Expand Down

0 comments on commit 2811d0a

Please sign in to comment.