diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-02-04 14:42:03 -0800 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2009-02-18 21:27:30 +0100 |
commit | 249d0fa9d59b6165ecc224720d9ce9b7267cf1b8 (patch) | |
tree | 7e7f7fdd6aec17f9b4c6aa4428e68ee129dca403 /drivers | |
parent | 5dbace0c9ba110c1a3810a89fa6bf12b7574b5a3 (diff) | |
download | talos-obmc-linux-249d0fa9d59b6165ecc224720d9ce9b7267cf1b8.tar.gz talos-obmc-linux-249d0fa9d59b6165ecc224720d9ce9b7267cf1b8.zip |
omap_hsmmc: card detect irq bugfix
Work around lockdep issue when card detect IRQ handlers run in
thread context ... it forces IRQF_DISABLED, which prevents all
access to twl4030 card detect signals.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index db37490f67ec..4dba48642e60 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -517,6 +517,9 @@ static void mmc_omap_detect(struct work_struct *work) { struct mmc_omap_host *host = container_of(work, struct mmc_omap_host, mmc_carddetect_work); + struct omap_mmc_slot_data *slot = &mmc_slot(host); + + host->carddetect = slot->card_detect(slot->card_detect_irq); sysfs_notify(&host->mmc->class_dev.kobj, NULL, "cover_switch"); if (host->carddetect) { @@ -538,7 +541,6 @@ static irqreturn_t omap_mmc_cd_handler(int irq, void *dev_id) { struct mmc_omap_host *host = (struct mmc_omap_host *)dev_id; - host->carddetect = mmc_slot(host).card_detect(irq); schedule_work(&host->mmc_carddetect_work); return IRQ_HANDLED; |