Skip to content

Commit

Permalink
[MMC] Add mmc_detect_change() delay support for PXAMCI driver
Browse files Browse the repository at this point in the history
Allow PXA platforms to pass an appropriate delay value to the
PXA MCI driver for delaying detection changes.

Signed-Off-By: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Richard Purdie authored and Russell King committed Sep 8, 2005
1 parent 01357dc commit c26971c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/mmc/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,9 @@ static void pxamci_dma_irq(int dma, void *devid, struct pt_regs *regs)

static irqreturn_t pxamci_detect_irq(int irq, void *devid, struct pt_regs *regs)
{
mmc_detect_change(devid, 0);
struct pxamci_host *host = mmc_priv(devid);

mmc_detect_change(devid, host->pdata->detect_delay);
return IRQ_HANDLED;
}

Expand Down
1 change: 1 addition & 0 deletions include/asm-arm/arch-pxa/mmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ struct mmc_host;

struct pxamci_platform_data {
unsigned int ocr_mask; /* available voltages */
unsigned long detect_delay; /* delay in jiffies before detecting cards after interrupt */
int (*init)(struct device *, irqreturn_t (*)(int, void *, struct pt_regs *), void *);
int (*get_ro)(struct device *);
void (*setpower)(struct device *, unsigned int);
Expand Down

0 comments on commit c26971c

Please sign in to comment.