Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297338
b: refs/heads/master
c: e23cd53
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Chris Ball committed Mar 27, 2012
1 parent 272baa5 commit b7868b6
Show file tree
Hide file tree
Showing 2 changed files with 7 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: e3f1adb63cfa6f6ef6b4e63a546e13210c5f3cb2
refs/heads/master: e23cd53c799694d0dc1d6a66370201ad9c181bae
7 changes: 6 additions & 1 deletion trunk/drivers/mmc/host/tmio_mmc_pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host, struct mmc_command
{
struct mmc_data *data = host->data;
int c = cmd->opcode;
u32 irq_mask = TMIO_MASK_CMD;

/* Command 12 is handled by hardware */
if (cmd->opcode == 12 && !cmd->arg) {
Expand Down Expand Up @@ -339,7 +340,9 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host, struct mmc_command
c |= TRANSFER_READ;
}

tmio_mmc_enable_mmc_irqs(host, TMIO_MASK_CMD);
if (!host->native_hotplug)
irq_mask &= ~(TMIO_STAT_CARD_REMOVE | TMIO_STAT_CARD_INSERT);
tmio_mmc_enable_mmc_irqs(host, irq_mask);

/* Fire off the command */
sd_ctrl_write32(host, CTL_ARG_REG, cmd->arg);
Expand Down Expand Up @@ -963,6 +966,8 @@ int __devinit tmio_mmc_host_probe(struct tmio_mmc_host **host,
irq_mask |= TMIO_MASK_READOP;
if (!_host->chan_tx)
irq_mask |= TMIO_MASK_WRITEOP;
if (!_host->native_hotplug)
irq_mask &= ~(TMIO_STAT_CARD_REMOVE | TMIO_STAT_CARD_INSERT);

tmio_mmc_enable_mmc_irqs(_host, irq_mask);

Expand Down

0 comments on commit b7868b6

Please sign in to comment.