aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/dw_mmc.c
diff options
context:
space:
mode:
authorSeungwon Jeon <tgih.jun@samsung.com>2013-08-30 11:13:22 -0400
committerChris Ball <cjb@laptop.org>2013-09-25 21:34:06 -0400
commit10b498419f41ffaca7510286c0db8ea34300576d (patch)
tree1b5d4fe2627230950a95178b4287aeec0351b86d /drivers/mmc/host/dw_mmc.c
parent5dd63f524666d0b1d1b07da7cc993bc8fcd141a9 (diff)
mmc: dw_mmc: move supports-highspeed of quirks to caps
'supports-highspeed' is not one of the quirks but is a capability. So, it's removed from quirks. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> Tested-by: Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc.c')
-rw-r--r--drivers/mmc/host/dw_mmc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index d9f864fd0771..cca9aa6b11c5 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -1999,9 +1999,6 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
1999 mmc->caps |= MMC_CAP_4_BIT_DATA; 1999 mmc->caps |= MMC_CAP_4_BIT_DATA;
2000 } 2000 }
2001 2001
2002 if (host->pdata->quirks & DW_MCI_QUIRK_HIGHSPEED)
2003 mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED;
2004
2005 if (host->pdata->blk_settings) { 2002 if (host->pdata->blk_settings) {
2006 mmc->max_segs = host->pdata->blk_settings->max_segs; 2003 mmc->max_segs = host->pdata->blk_settings->max_segs;
2007 mmc->max_blk_size = host->pdata->blk_settings->max_blk_size; 2004 mmc->max_blk_size = host->pdata->blk_settings->max_blk_size;
@@ -2130,9 +2127,6 @@ static struct dw_mci_of_quirks {
2130 int id; 2127 int id;
2131} of_quirks[] = { 2128} of_quirks[] = {
2132 { 2129 {
2133 .quirk = "supports-highspeed",
2134 .id = DW_MCI_QUIRK_HIGHSPEED,
2135 }, {
2136 .quirk = "broken-cd", 2130 .quirk = "broken-cd",
2137 .id = DW_MCI_QUIRK_BROKEN_CARD_DETECTION, 2131 .id = DW_MCI_QUIRK_BROKEN_CARD_DETECTION,
2138 }, 2132 },
@@ -2187,6 +2181,9 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host)
2187 if (of_find_property(np, "enable-sdio-wakeup", NULL)) 2181 if (of_find_property(np, "enable-sdio-wakeup", NULL))
2188 pdata->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; 2182 pdata->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
2189 2183
2184 if (of_find_property(np, "supports-highspeed", NULL))
2185 pdata->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED;
2186
2190 if (of_find_property(np, "caps2-mmc-hs200-1_8v", NULL)) 2187 if (of_find_property(np, "caps2-mmc-hs200-1_8v", NULL))
2191 pdata->caps2 |= MMC_CAP2_HS200_1_8V_SDR; 2188 pdata->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
2192 2189