* [PATCH] fixup! mci: sdhci: add Atmel SDHCI (sama5d2, sam9x60) support
@ 2020-06-08 7:16 Ahmad Fatoum
2020-06-10 7:16 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2020-06-08 7:16 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
sdhci_write32 accepts the register as second argument, not third.
Fix this up.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/mci/atmel-sdhci-common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mci/atmel-sdhci-common.c b/drivers/mci/atmel-sdhci-common.c
index 680b1980c020..b9524622620f 100644
--- a/drivers/mci/atmel-sdhci-common.c
+++ b/drivers/mci/atmel-sdhci-common.c
@@ -358,8 +358,8 @@ int at91_sdhci_init(struct at91_sdhci *host, u32 maxclk,
}
if (cal_always_on) {
- sdhci_write32(sdhci, AT91_SDHCI_CALCR_ALWYSON | AT91_SDHCI_CALCR_EN,
- AT91_SDHCI_CALCR);
+ sdhci_write32(sdhci, AT91_SDHCI_CALCR,
+ AT91_SDHCI_CALCR_ALWYSON | AT91_SDHCI_CALCR_EN);
}
return 0;
--
2.27.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fixup! mci: sdhci: add Atmel SDHCI (sama5d2, sam9x60) support
2020-06-08 7:16 [PATCH] fixup! mci: sdhci: add Atmel SDHCI (sama5d2, sam9x60) support Ahmad Fatoum
@ 2020-06-10 7:16 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-06-10 7:16 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Mon, Jun 08, 2020 at 09:16:06AM +0200, Ahmad Fatoum wrote:
> sdhci_write32 accepts the register as second argument, not third.
> Fix this up.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> drivers/mci/atmel-sdhci-common.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
The commit you fixup is already in master, so I reworded the subject and
added a Fixes: tag.
Sascha
>
> diff --git a/drivers/mci/atmel-sdhci-common.c b/drivers/mci/atmel-sdhci-common.c
> index 680b1980c020..b9524622620f 100644
> --- a/drivers/mci/atmel-sdhci-common.c
> +++ b/drivers/mci/atmel-sdhci-common.c
> @@ -358,8 +358,8 @@ int at91_sdhci_init(struct at91_sdhci *host, u32 maxclk,
> }
>
> if (cal_always_on) {
> - sdhci_write32(sdhci, AT91_SDHCI_CALCR_ALWYSON | AT91_SDHCI_CALCR_EN,
> - AT91_SDHCI_CALCR);
> + sdhci_write32(sdhci, AT91_SDHCI_CALCR,
> + AT91_SDHCI_CALCR_ALWYSON | AT91_SDHCI_CALCR_EN);
> }
>
> return 0;
> --
> 2.27.0
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-10 7:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 7:16 [PATCH] fixup! mci: sdhci: add Atmel SDHCI (sama5d2, sam9x60) support Ahmad Fatoum
2020-06-10 7:16 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox