mmc: sdhci-of-arasan: use io functions from sdhci.h
Subsystems (3)
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
@@ -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
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
Signed-off-by Jean-Francois Dagenais <[email protected]>--- drivers/mmc/host/sdhci-of-arasan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/mmc/host/sdhci-of-arasan.c +2
-2@@ -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)
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?
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
Signed-off-by Jean-Francois Dagenais <[email protected]>
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@@ -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)
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.
Signed-off-by Jean-Francois Dagenais <[email protected]>--- 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@@ -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
Ulf Hansson
AppliedQuoted 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.
Signed-off-by Jean-Francois Dagenais <[email protected]>
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@@ -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