summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/quirks.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2015-10-02 10:56:11 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2015-10-26 16:00:09 +0100
commit9eadcc0581a8ccaf4c2378aa1c193fb164304f1d (patch)
tree906aca52e94a37059310f6ed0ad9db58de74b2be /drivers/mmc/core/quirks.c
parenta22950c888e3770c958a5c489906b48d3764a783 (diff)
downloadtalos-obmc-linux-9eadcc0581a8ccaf4c2378aa1c193fb164304f1d.tar.gz
talos-obmc-linux-9eadcc0581a8ccaf4c2378aa1c193fb164304f1d.zip
mmc: core: Remove MMC_CLKGATE
MMC_CLKGATE was once invented to save power by gating the bus clock at request inactivity. At that time it served its purpose. The modern way to deal with power saving for these scenarios, is by using runtime PM. Nowadays, several host drivers have deployed runtime PM, but for those that haven't and which still cares power saving at request inactivity, it's certainly time to deploy runtime PM as it has been around for several years now. To simplify code to mmc core and thus decrease maintenance efforts, this patch removes all code related to MMC_CLKGATE. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/mmc/core/quirks.c')
-rw-r--r--drivers/mmc/core/quirks.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/mmc/core/quirks.c b/drivers/mmc/core/quirks.c
index dd1d1e0fe322..fad660b95809 100644
--- a/drivers/mmc/core/quirks.c
+++ b/drivers/mmc/core/quirks.c
@@ -35,25 +35,7 @@
#define SDIO_DEVICE_ID_MARVELL_8797_F0 0x9128
#endif
-/*
- * This hook just adds a quirk for all sdio devices
- */
-static void add_quirk_for_sdio_devices(struct mmc_card *card, int data)
-{
- if (mmc_card_sdio(card))
- card->quirks |= data;
-}
-
static const struct mmc_fixup mmc_fixup_methods[] = {
- /* by default sdio devices are considered CLK_GATING broken */
- /* good cards will be whitelisted as they are tested */
- SDIO_FIXUP(SDIO_ANY_ID, SDIO_ANY_ID,
- add_quirk_for_sdio_devices,
- MMC_QUIRK_BROKEN_CLK_GATING),
-
- SDIO_FIXUP(SDIO_VENDOR_ID_TI, SDIO_DEVICE_ID_TI_WL1271,
- remove_quirk, MMC_QUIRK_BROKEN_CLK_GATING),
-
SDIO_FIXUP(SDIO_VENDOR_ID_TI, SDIO_DEVICE_ID_TI_WL1271,
add_quirk, MMC_QUIRK_NONSTD_FUNC_IF),
OpenPOWER on IntegriCloud