Skip to contentSkip to conversation

mmc: sdhci-of-arasan: use io functions from sdhci.h

PATCH Applied Jean-Francois Dagenais 5 participants 6 messages Jul 17, 2017 – Jul 27, 2017

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

PATCH 1/1 mmc: sdhci-of-arasan: use io functions from sdhci.h

This increases consistency of the code across the sdhci family.

v2: rebased onto ulfh/mmc/next and tweaked headline accordingly.

---
 drivers/mmc/host/sdhci-of-arasan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci-of-arasan.c +2 -2
index b13c0a7d50e4..528a5d24c0bc 100644
@@ -216,13 +216,13 @@ static void sdhci_arasan_hs400_enhanced_strobe(struct mmc_host *mmc,
 	u32 vendor;
 	struct sdhci_host *host = mmc_priv(mmc);
 
-	vendor = readl(host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+	vendor = sdhci_readl(host, SDHCI_ARASAN_VENDOR_REGISTER);
 	if (ios->enhanced_strobe)
 		vendor |= VENDOR_ENHANCED_STROBE;
 	else
 		vendor &= ~VENDOR_ENHANCED_STROBE;
 
-	writel(vendor, host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+	sdhci_writel(host, vendor, SDHCI_ARASAN_VENDOR_REGISTER);
 }
 
 static void sdhci_arasan_reset(struct sdhci_host *host, u8 mask)
Signature · 1 line
2.11.0
#1 lore raw
Quoted 3 lines · Jean-Francois Dagenais

This increases consistency of the code across the sdhci family.

v2: rebased onto ulfh/mmc/next and tweaked headline accordingly.

Information about patch version shouldn't be the part of commit message but they should be placed below ---.

Thanks,
Michal

Quoted 27 lines
---
 drivers/mmc/host/sdhci-of-arasan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci-of-arasan.c +2 -2
index b13c0a7d50e4..528a5d24c0bc 100644
@@ -216,13 +216,13 @@ static void sdhci_arasan_hs400_enhanced_strobe(struct mmc_host *mmc,
 	u32 vendor;
 	struct sdhci_host *host = mmc_priv(mmc);
 
-	vendor = readl(host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+	vendor = sdhci_readl(host, SDHCI_ARASAN_VENDOR_REGISTER);
 	if (ios->enhanced_strobe)
 		vendor |= VENDOR_ENHANCED_STROBE;
 	else
 		vendor &= ~VENDOR_ENHANCED_STROBE;
 
-	writel(vendor, host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+	sdhci_writel(host, vendor, SDHCI_ARASAN_VENDOR_REGISTER);
 }
 
 static void sdhci_arasan_reset(struct sdhci_host *host, u8 mask)
#2 lore raw
Quoted 5 lines · Michal Simek

Information about patch version shouldn't be the part of commit message but they should be placed below ---.

Sorry, still perfecting this mailing patches art. Wish it was merge requests on github... less decorum and chances to get it wrong!

I had put the "-v2" switch on "git send-email" but it didn't appear in the commit msg??

Also, I got a "kbuild test robot" build regression notice, but the contained errors seem unrelated to my patch... Should I do anything about that?

Should I formulate a v3?

maintainer Acked-by on v1 1/1
#3 lore raw
In reply to Jean-Francois Dagenais
Quoted 3 lines · Jean-Francois Dagenais

This increases consistency of the code across the sdhci family.

v2: rebased onto ulfh/mmc/next and tweaked headline accordingly.

As mentioned elsewhere, v2 comment doesn't belong in commit message.

Quoted 2 lines

Otherwise:

Quoted 25 lines
---
 drivers/mmc/host/sdhci-of-arasan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci-of-arasan.c +2 -2
index b13c0a7d50e4..528a5d24c0bc 100644
@@ -216,13 +216,13 @@ static void sdhci_arasan_hs400_enhanced_strobe(struct mmc_host *mmc,
 	u32 vendor;
 	struct sdhci_host *host = mmc_priv(mmc);
 
-	vendor = readl(host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+	vendor = sdhci_readl(host, SDHCI_ARASAN_VENDOR_REGISTER);
 	if (ios->enhanced_strobe)
 		vendor |= VENDOR_ENHANCED_STROBE;
 	else
 		vendor &= ~VENDOR_ENHANCED_STROBE;
 
-	writel(vendor, host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+	sdhci_writel(host, vendor, SDHCI_ARASAN_VENDOR_REGISTER);
 }
 
 static void sdhci_arasan_reset(struct sdhci_host *host, u8 mask)
Reviewed-by Tested-by on v1 1/1
#4 lore raw
In reply to Jean-Francois Dagenais
Quoted 9 lines · Jean-Francois Dagenais

This increases consistency of the code across the sdhci family.

v2: rebased onto ulfh/mmc/next and tweaked headline accordingly.

---
 drivers/mmc/host/sdhci-of-arasan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Apart from the msg above,

And I included your patch for my other test for sdhci-of-arasan this afternoon, so

Quoted 21 lines
drivers/mmc/host/sdhci-of-arasan.c +2 -2
index b13c0a7d50e4..528a5d24c0bc 100644
@@ -216,13 +216,13 @@ static void sdhci_arasan_hs400_enhanced_strobe(struct mmc_host *mmc,
 	u32 vendor;
 	struct sdhci_host *host = mmc_priv(mmc);
 
-	vendor = readl(host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+	vendor = sdhci_readl(host, SDHCI_ARASAN_VENDOR_REGISTER);
 	if (ios->enhanced_strobe)
 		vendor |= VENDOR_ENHANCED_STROBE;
 	else
 		vendor &= ~VENDOR_ENHANCED_STROBE;
 
-	writel(vendor, host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+	sdhci_writel(host, vendor, SDHCI_ARASAN_VENDOR_REGISTER);
 }
 
 static void sdhci_arasan_reset(struct sdhci_host *host, u8 mask)
Signature · 2 lines
Best Regards
Shawn Lin
Applied
#5 lore raw
In reply to Jean-Francois Dagenais
Quoted 5 lines · Jean-Francois Dagenais

This increases consistency of the code across the sdhci family.

v2: rebased onto ulfh/mmc/next and tweaked headline accordingly.

Thanks applied for next, by dropping the version history from the change log.

Kind regards
Uffe

Quoted 27 lines
---
 drivers/mmc/host/sdhci-of-arasan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci-of-arasan.c +2 -3
index b13c0a7d50e4..528a5d24c0bc 100644
@@ -216,13 +216,13 @@ static void sdhci_arasan_hs400_enhanced_strobe(struct mmc_host *mmc,
        u32 vendor;
        struct sdhci_host *host = mmc_priv(mmc);
 
-       vendor = readl(host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+       vendor = sdhci_readl(host, SDHCI_ARASAN_VENDOR_REGISTER);
        if (ios->enhanced_strobe)
                vendor |= VENDOR_ENHANCED_STROBE;
        else
                vendor &= ~VENDOR_ENHANCED_STROBE;
 
-       writel(vendor, host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
+       sdhci_writel(host, vendor, SDHCI_ARASAN_VENDOR_REGISTER);
 }
 
 static void sdhci_arasan_reset(struct sdhci_host *host, u8 mask)
--

2.11.0