Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102179
b: refs/heads/master
c: 20f522f
h: refs/heads/master
i:
  102177: b3bfc5c
  102175: 3c844b3
v: v3
  • Loading branch information
Manuel Lauss authored and Pierre Ossman committed Jul 15, 2008
1 parent 79e52c4 commit d64f299
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 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: 281dd23ea03e9893c02d237d9e35a7d20d412452
refs/heads/master: 20f522ff5583a818922b3f650f6f7ef0e3e1aa68
16 changes: 15 additions & 1 deletion trunk/drivers/mmc/host/au1xmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,9 @@ static irqreturn_t au1xmmc_irq(int irq, void *dev_id)
if (!(status & SD_STATUS_I))
return IRQ_NONE; /* not ours */

if (status & SD_STATUS_SI) /* SDIO */
mmc_signal_sdio_irq(host->mmc);

if (host->mrq && (status & STATUS_TIMEOUT)) {
if (status & SD_STATUS_RAT)
host->mrq->cmd->error = -ETIMEDOUT;
Expand Down Expand Up @@ -862,10 +865,21 @@ static void au1xmmc_dbdma_shutdown(struct au1xmmc_host *host)
}
#endif

static void au1xmmc_enable_sdio_irq(struct mmc_host *mmc, int en)
{
struct au1xmmc_host *host = mmc_priv(mmc);

if (en)
IRQ_ON(host, SD_CONFIG_SI);
else
IRQ_OFF(host, SD_CONFIG_SI);
}

static const struct mmc_host_ops au1xmmc_ops = {
.request = au1xmmc_request,
.set_ios = au1xmmc_set_ios,
.get_ro = au1xmmc_card_readonly,
.enable_sdio_irq = au1xmmc_enable_sdio_irq,
};

static void au1xmmc_poll_event(unsigned long arg)
Expand Down Expand Up @@ -964,7 +978,7 @@ static int __devinit au1xmmc_probe(struct platform_device *pdev)
mmc->max_blk_count = 512;

mmc->ocr_avail = AU1XMMC_OCR;
mmc->caps = MMC_CAP_4_BIT_DATA;
mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SDIO_IRQ;

host->status = HOST_S_IDLE;

Expand Down

0 comments on commit d64f299

Please sign in to comment.