Skip to content

Commit

Permalink
mmc: sdhci-pci: remove SDHCI_QUIRK2_OWN_CARD_DETECTION
Browse files Browse the repository at this point in the history
Even if a driver provides separate card detection, an interrupt
is still needed to abort mmc requests that are in progress.
SDHCI_QUIRK2_OWN_CARD_DETECTION prevents that, so remove it.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Adrian Hunter authored and Chris Ball committed Jan 12, 2012
1 parent c5e027a commit e2a0a58
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion drivers/mmc/host/sdhci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ static void sdhci_pci_add_own_cd(struct sdhci_pci_slot *slot)

slot->cd_gpio = gpio;
slot->cd_irq = irq;
slot->host->quirks2 |= SDHCI_QUIRK2_OWN_CARD_DETECTION;

return;

Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ static void sdhci_set_card_detection(struct sdhci_host *host, bool enable)
u32 present, irqs;

if ((host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION) ||
(host->quirks2 & SDHCI_QUIRK2_OWN_CARD_DETECTION) ||
!mmc_card_is_removable(host->mmc))
return;

Expand Down
2 changes: 0 additions & 2 deletions include/linux/mmc/sdhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ struct sdhci_host {

unsigned int quirks2; /* More deviations from spec. */

#define SDHCI_QUIRK2_OWN_CARD_DETECTION (1<<0)

int irq; /* Device IRQ */
void __iomem *ioaddr; /* Mapped address */

Expand Down

0 comments on commit e2a0a58

Please sign in to comment.