Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sdhci: add no hi-speed bit quirk support

Some SDHCI controllers like s5pc110 don't have an HISPD bit in the HOSTCTL
register.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kyungmin Park and committed by
Linus Torvalds
51932501 930a6f70

+4 -1
+2 -1
drivers/mmc/host/sdhci.c
··· 1180 1180 else 1181 1181 ctrl &= ~SDHCI_CTRL_4BITBUS; 1182 1182 1183 - if (ios->timing == MMC_TIMING_SD_HS) 1183 + if (ios->timing == MMC_TIMING_SD_HS && 1184 + !(host->quirks & SDHCI_QUIRK_NO_HISPD_BIT)) 1184 1185 ctrl |= SDHCI_CTRL_HISPD; 1185 1186 else 1186 1187 ctrl &= ~SDHCI_CTRL_HISPD;
+2
drivers/mmc/host/sdhci.h
··· 245 245 #define SDHCI_QUIRK_MISSING_CAPS (1<<27) 246 246 /* Controller uses Auto CMD12 command to stop the transfer */ 247 247 #define SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 (1<<28) 248 + /* Controller doesn't have HISPD bit field in HI-SPEED SD card */ 249 + #define SDHCI_QUIRK_NO_HISPD_BIT (1<<29) 248 250 249 251 int irq; /* Device IRQ */ 250 252 void __iomem * ioaddr; /* Mapped address */