Skip to contentSkip to conversation

mmc: sdhci-acpi: For amd device set driver type as MMC_SET_DRIVER_TYPE_A

PATCH In review Akshu Agrawal 3 participants 3 messages Jun 23, 2020 – Jul 6, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: sdhci-acpi: For amd device set driver type as MMC_SET_DRIVER_TYPE_A

HS400/HS200/eMMC HS doesn't have Preset Value register. Hence, sdhci_set_ios function overrides the value set by fmw to SDHCI_CTRL_DRV_TYPE_B.
This patch sets drv_type to MMC_SET_DRIVER_TYPE_A
so that host_control2 register gets updated with the required strength value.

---
 drivers/mmc/host/sdhci-acpi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci-acpi.c +1 -0
index d8b76cb8698a..48ecbd0b180d 100644
@@ -542,6 +542,7 @@ static int amd_select_drive_strength(struct mmc_card *card,
 				     unsigned int max_dtr, int host_drv,
 				     int card_drv, int *drv_type)
 {
+	*drv_type = MMC_SET_DRIVER_TYPE_A;
 	return MMC_SET_DRIVER_TYPE_A;
 }
 
Signature · 1 line
2.20.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Akshu Agrawal

HS400/HS200/eMMC HS doesn't have Preset Value register. Hence, sdhci_set_ios function overrides the value set by fmw to SDHCI_CTRL_DRV_TYPE_B.
This patch sets drv_type to MMC_SET_DRIVER_TYPE_A
so that host_control2 register gets updated with the required strength value.

Quoted 17 lines
---
 drivers/mmc/host/sdhci-acpi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci-acpi.c +1 -0
index d8b76cb8698a..48ecbd0b180d 100644
@@ -542,6 +542,7 @@ static int amd_select_drive_strength(struct mmc_card *card,
 				     unsigned int max_dtr, int host_drv,
 				     int card_drv, int *drv_type)
 {
+	*drv_type = MMC_SET_DRIVER_TYPE_A;
 	return MMC_SET_DRIVER_TYPE_A;
 }
 
#2 lore raw
In reply to Akshu Agrawal
Quoted 9 lines · Akshu Agrawal

HS400/HS200/eMMC HS doesn't have Preset Value register. Hence, sdhci_set_ios function overrides the value set by fmw to SDHCI_CTRL_DRV_TYPE_B.
This patch sets drv_type to MMC_SET_DRIVER_TYPE_A
so that host_control2 register gets updated with the required strength value.

Applied for next, thanks!

Kind regards
Uffe

Quoted 19 lines
---
 drivers/mmc/host/sdhci-acpi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci-acpi.c +1 -1
index d8b76cb8698a..48ecbd0b180d 100644
@@ -542,6 +542,7 @@ static int amd_select_drive_strength(struct mmc_card *card,
                                     unsigned int max_dtr, int host_drv,
                                     int card_drv, int *drv_type)
 {
+       *drv_type = MMC_SET_DRIVER_TYPE_A;
        return MMC_SET_DRIVER_TYPE_A;
 }
 
--

2.20.1