Skip to contentSkip to conversation

mmc: host: arasan: sdhci-of-arasan: Remove no-hispd and no-cmd23 quirks for sdhci-arasan4.9a

PATCH Applied Rameshswar Prasad Sahu 3 participants 5 messages Dec 23, 2015 – Jan 27, 2016

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

PATCH 1/1 mmc: host: arasan: sdhci-of-arasan: Remove no-hispd and no-cmd23 quirks for sdhci-arasan4.9a

From: Rameshwar Prasad Sahu <[email protected]>

The Arason SD host controller supports set block count command (cmd23) and high speed mode. This patch re-enable both of these features that was disabled. For device that doesn't support high speed, it should configure its capability register accordingly instead disables it explicitly.

---
 drivers/mmc/host/sdhci-of-arasan.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/mmc/host/sdhci-of-arasan.c +0 -5
index 75379cb..5d9fdb3 100644
@@ -172,11 +172,6 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
 		goto clk_disable_all;
 	}
 
-	if (of_device_is_compatible(pdev->dev.of_node, "arasan,sdhci-4.9a")) {
-		host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT;
-		host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23;
-	}
-
 	sdhci_get_of_property(pdev);
 	pltfm_host = sdhci_priv(host);
 	pltfm_host->priv = sdhci_arasan;

--
1.7.1

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

#1 lore raw

Hi Ulf,

Quoted 30 lines · Rameshswar Prasad Sahu

From: Rameshwar Prasad Sahu <[email protected]>

The Arason SD host controller supports set block count command (cmd23) and high speed mode. This patch re-enable both of these features that was disabled. For device that doesn't support high speed, it should configure its capability register accordingly instead disables it explicitly.

---
 drivers/mmc/host/sdhci-of-arasan.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/mmc/host/sdhci-of-arasan.c +0 -6
index 75379cb..5d9fdb3 100644
@@ -172,11 +172,6 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
                goto clk_disable_all;
        }
 
-       if (of_device_is_compatible(pdev->dev.of_node, "arasan,sdhci-4.9a")) {
-               host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT;
-               host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23;
-       }
-
        sdhci_get_of_property(pdev);
        pltfm_host = sdhci_priv(host);
        pltfm_host->priv = sdhci_arasan;
--
Quoted 2 lines

1.7.1

Any comment on this patch ??

#2 lore raw

Hi,

Quoted 24 lines · Rameshwar Sahu

Hi Ulf,

Quoted 21 lines · Rameshswar Prasad Sahu

From: Rameshwar Prasad Sahu <[email protected]>

The Arason SD host controller supports set block count command (cmd23) and high speed mode. This patch re-enable both of these features that was disabled. For device that doesn't support high speed, it should configure its capability register accordingly instead disables it explicitly.

---
 drivers/mmc/host/sdhci-of-arasan.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/mmc/host/sdhci-of-arasan.c +0 -0
index 75379cb..5d9fdb3 100644
@@ -172,11 +172,6 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
                goto clk_disable_all;
        }
 
Quoted 3 lines

drivers/mmc/host/sdhci-of-arasan.c static int sdhci_arasan_probe(struct platform_device *pdev) · line 177

Quoted 3 lines
drivers/mmc/host/sdhci-of-arasan.c +0 -3
-       if (of_device_is_compatible(pdev->dev.of_node, "arasan,sdhci-4.9a")) {
-               host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT;
-               host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23;

I'm not sure what's correct since i didn't have any information for arasan.
But in case of exynos, SDHCI_QUIRK_NO_HISPD_BIT is used because that bit is used as other purpose. If your SoC is not used anymore, i think this patch looks good.

Best Regards,
Jaehoon Chung

Quoted 16 lines
Quoted 8 lines
drivers/mmc/host/sdhci-of-arasan.c +0 -3
-       }
-
        sdhci_get_of_property(pdev);
        pltfm_host = sdhci_priv(host);
        pltfm_host->priv = sdhci_arasan;
--

1.7.1

Any comment on this patch ??
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Hi Jaehoon,

Quoted 27 lines · Jaehoon Chung

Hi,

Quoted 24 lines · Rameshwar Sahu

Hi Ulf,

Quoted 21 lines · Rameshswar Prasad Sahu

From: Rameshwar Prasad Sahu <[email protected]>

The Arason SD host controller supports set block count command (cmd23) and high speed mode. This patch re-enable both of these features that was disabled. For device that doesn't support high speed, it should configure its capability register accordingly instead disables it explicitly.

---
 drivers/mmc/host/sdhci-of-arasan.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/mmc/host/sdhci-of-arasan.c +0 -0
index 75379cb..5d9fdb3 100644
@@ -172,11 +172,6 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
                goto clk_disable_all;
        }
 
Quoted 7 lines
Quoted 3 lines

drivers/mmc/host/sdhci-of-arasan.c static int sdhci_arasan_probe(struct platform_device *pdev) · line 177

Quoted 3 lines
drivers/mmc/host/sdhci-of-arasan.c +0 -3
-       if (of_device_is_compatible(pdev->dev.of_node, "arasan,sdhci-4.9a")) {
-               host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT;
-               host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23;

I'm not sure what's correct since i didn't have any information for arasan.
But in case of exynos, SDHCI_QUIRK_NO_HISPD_BIT is used because that bit is used as other purpose. If your SoC is not used anymore, i think this patch looks good.

Our SoC doesn't need that bit, that's why we are going to remove it.

Quoted 21 lines

Best Regards,
Jaehoon Chung

Quoted 16 lines
Quoted 8 lines
drivers/mmc/host/sdhci-of-arasan.c +0 -3
-       }
-
        sdhci_get_of_property(pdev);
        pltfm_host = sdhci_priv(host);
        pltfm_host->priv = sdhci_arasan;
--

1.7.1

Any comment on this patch ??
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#4 lore raw
In reply to Rameshswar Prasad Sahu
Quoted 9 lines · Rameshswar Prasad Sahu

From: Rameshwar Prasad Sahu <[email protected]>

The Arason SD host controller supports set block count command (cmd23) and high speed mode. This patch re-enable both of these features that was disabled. For device that doesn't support high speed, it should configure its capability register accordingly instead disables it explicitly.

Thanks, applied for next!

Kind regards
Uffe

Quoted 23 lines
---
 drivers/mmc/host/sdhci-of-arasan.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/mmc/host/sdhci-of-arasan.c +0 -6
index 75379cb..5d9fdb3 100644
@@ -172,11 +172,6 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
                goto clk_disable_all;
        }
 
-       if (of_device_is_compatible(pdev->dev.of_node, "arasan,sdhci-4.9a")) {
-               host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT;
-               host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23;
-       }
-
        sdhci_get_of_property(pdev);
        pltfm_host = sdhci_priv(host);
        pltfm_host->priv = sdhci_arasan;
--

1.7.1