Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186292
b: refs/heads/master
c: a04ac5b
h: refs/heads/master
v: v3
  • Loading branch information
Wolfgang Muees authored and Linus Torvalds committed Mar 6, 2010
1 parent 38ba1f6 commit 4841cf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 0b3520f2df8e4e5dad6a7b2743d037bf06c22024
refs/heads/master: a04ac5b9b45a7adec7d3ee3968e677b6e4b98f25
6 changes: 4 additions & 2 deletions trunk/drivers/mmc/host/at91_mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,8 @@ static void at91_mci_request(struct mmc_host *mmc, struct mmc_request *mrq)
host->request = mrq;
host->flags = 0;

mod_timer(&host->timer, jiffies + HZ);
/* more than 1s timeout needed with slow SD cards */
mod_timer(&host->timer, jiffies + msecs_to_jiffies(2000));

at91_mci_process_next(host);
}
Expand Down Expand Up @@ -944,7 +945,8 @@ static irqreturn_t at91_mmc_det_irq(int irq, void *_host)
pr_debug("****** Resetting SD-card bus width ******\n");
at91_mci_write(host, AT91_MCI_SDCR, at91_mci_read(host, AT91_MCI_SDCR) & ~AT91_MCI_SDCBUS);
}
mmc_detect_change(host->mmc, msecs_to_jiffies(100));
/* 0.5s needed because of early card detect switch firing */
mmc_detect_change(host->mmc, msecs_to_jiffies(500));
}
return IRQ_HANDLED;
}
Expand Down

0 comments on commit 4841cf6

Please sign in to comment.