From: Sascha Hauer <s.hauer@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 2/3] mci: sdhci: atmel: use dev_printf instead of pr_print in common code
Date: Tue, 23 Jun 2020 11:46:36 +0200 [thread overview]
Message-ID: <20200623094636.GY11869@pengutronix.de> (raw)
In-Reply-To: <20200622083943.21737-2-a.fatoum@pengutronix.de>
On Mon, Jun 22, 2020 at 10:39:42AM +0200, Ahmad Fatoum wrote:
> On boards like the sama5d27 som1 ek, we have two SD card slots, so error
> messages are more useful if they refer to the SDHCI instance. We didn't
> do this at first, because the common code is compiled for PBL as well.
> With a sprinkle of preprocessor ifdeffery, we can have both.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> drivers/mci/atmel-sdhci-common.c | 14 +++++++++-----
> drivers/mci/atmel-sdhci.c | 2 ++
> drivers/mci/atmel-sdhci.h | 1 +
> 3 files changed, 12 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/mci/atmel-sdhci-common.c b/drivers/mci/atmel-sdhci-common.c
> index 060d1c33d1a5..a83610c3d090 100644
> --- a/drivers/mci/atmel-sdhci-common.c
> +++ b/drivers/mci/atmel-sdhci-common.c
> @@ -16,6 +16,10 @@
>
> #ifdef __PBL__
> #define udelay early_udelay
> +#undef dev_err
> +#define dev_err(d, ...) pr_err(__VA_ARGS__)
> +#undef dev_warn
> +#define dev_warn(d, ...) pr_warn(__VA_ARGS__)
> #endif
This hunk doesn't apply. Is a patch missing in this series?
Sascha
--
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
next prev parent reply other threads:[~2020-06-23 9:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-22 8:39 [PATCH 1/3] mci: sdhci: atmel: don't print errors on command timeouts Ahmad Fatoum
2020-06-22 8:39 ` [PATCH 2/3] mci: sdhci: atmel: use dev_printf instead of pr_print in common code Ahmad Fatoum
2020-06-23 9:46 ` Sascha Hauer [this message]
2020-06-23 10:05 ` Ahmad Fatoum
2020-06-22 8:39 ` [PATCH 3/3] mci: sdhci: atmel: avoid buggy SDHCI_RESET_ALL Ahmad Fatoum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200623094636.GY11869@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox