Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102188
b: refs/heads/master
c: 2134a92
h: refs/heads/master
v: v3
  • Loading branch information
Pierre Ossman committed Jul 15, 2008
1 parent ce82579 commit 0e07059
Show file tree
Hide file tree
Showing 4 changed files with 408 additions and 45 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: 93fc48c785f6266e67663b3cbbf24579b53fe5cf
refs/heads/master: 2134a922c6e75c779983cad5d8aae832275f5a0d
17 changes: 17 additions & 0 deletions trunk/drivers/mmc/host/sdhci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ static int jmicron_probe(struct sdhci_pci_chip *chip)
if (chip->pdev->revision == 0) {
chip->quirks |= SDHCI_QUIRK_32BIT_DMA_ADDR |
SDHCI_QUIRK_32BIT_DMA_SIZE |
SDHCI_QUIRK_32BIT_ADMA_SIZE |
SDHCI_QUIRK_RESET_AFTER_REQUEST;
}

Expand Down Expand Up @@ -206,6 +207,22 @@ static void jmicron_enable_mmc(struct sdhci_host *host, int on)

static int jmicron_probe_slot(struct sdhci_pci_slot *slot)
{
if (slot->chip->pdev->revision == 0) {
u16 version;

version = readl(slot->host->ioaddr + SDHCI_HOST_VERSION);
version = (version & SDHCI_VENDOR_VER_MASK) >>
SDHCI_VENDOR_VER_SHIFT;

/*
* Older versions of the chip have lots of nasty glitches
* in the ADMA engine. It's best just to avoid it
* completely.
*/
if (version < 0xAC)
slot->host->quirks |= SDHCI_QUIRK_BROKEN_ADMA;
}

/*
* The secondary interface requires a bit set to get the
* interrupts.
Expand Down
Loading

0 comments on commit 0e07059

Please sign in to comment.