Skip to contentSkip to conversation

mmc: dw_mmc: remove the MMC_CAP_8_BIT_DATA in dw_mmc_caps[]

PATCH In review Jaehoon Chung 2 participants 2 messages Jun 17, 2013 – Jun 26, 2013

Subsystems (3)
lore
Share & tools
lore

Jaehoon Chung

author maintainer
#0 lore raw

PATCH 1/1 mmc: dw_mmc: remove the MMC_CAP_8_BIT_DATA in dw_mmc_caps[]

This capability didn't need to set in dw_mmc_caps[]. In dw-mmc.c, this capability could be set with bus_width value.

---
 drivers/mmc/host/dw_mmc-exynos.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mmc/host/dw_mmc-exynos.c +1 -2
index f013e7e..31d518b 100644
@@ -154,8 +154,7 @@ static int dw_mci_exynos_parse_dt(struct dw_mci *host)
 
 /* Common capabilities of Exynos4/Exynos5 SoC */
 static unsigned long exynos_dwmmc_caps[4] = {
-	MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR |
-		MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23,
+	MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR | MMC_CAP_CMD23,
 	MMC_CAP_CMD23,
 	MMC_CAP_CMD23,
 	MMC_CAP_CMD23,
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · Jaehoon Chung

This capability didn't need to set in dw_mmc_caps[]. In dw-mmc.c, this capability could be set with bus_width value.

You're right. It can be set from dw_mci_of_get_bus_wd. But I have another idea. exynos_dwmmc_caps is host own capability. As we know, host#0 support 8-bit widths.
This capability is meaningful by default at this view. On the other hand, we don't need to refer to bus_width value.

If we exclude bus-width capability from exynos_dwmmc_caps, it should assume that bus-width is decided from outside. Then, I think the related comment should be included.

Thanks,
Seungwon Jeon

Quoted 26 lines
---
 drivers/mmc/host/dw_mmc-exynos.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mmc/host/dw_mmc-exynos.c +1 -3
index f013e7e..31d518b 100644
@@ -154,8 +154,7 @@ static int dw_mci_exynos_parse_dt(struct dw_mci *host)
 
 /* Common capabilities of Exynos4/Exynos5 SoC */
 static unsigned long exynos_dwmmc_caps[4] = {
-	MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR |
-		MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23,
+	MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR | MMC_CAP_CMD23,
 	MMC_CAP_CMD23,
 	MMC_CAP_CMD23,
 	MMC_CAP_CMD23,
--

1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html