Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: sunxi: change controller error info to debug level
@ 2017-03-16 13:29 Icenowy Zheng
  2017-03-20  8:59 ` Maxime Ripard
  2017-03-24  7:46 ` Ulf Hansson
  0 siblings, 2 replies; 4+ messages in thread
From: Icenowy Zheng @ 2017-03-16 13:29 UTC (permalink / raw)
  To: linux-arm-kernel

The controller's errors are usually normal (for example, for MMC or SDIO
cards, some errors are expected to happen; and for boards without a
dedicated card detect pin the error info will even flood console and
hide other normal messages) and hard to understand.

Change their print level to debug, thus it won't be shown to generic
users.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
---
 drivers/mmc/host/sunxi-mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index 6ffcd2838272..0391c62cc99f 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/host/sunxi-mmc.c
@@ -489,7 +489,7 @@ static void sunxi_mmc_dump_errinfo(struct sunxi_mmc_host *host)
 				      cmd->opcode == SD_IO_RW_DIRECT))
 		return;
 
-	dev_err(mmc_dev(host->mmc),
+	dev_dbg(mmc_dev(host->mmc),
 		"smc %d err, cmd %d,%s%s%s%s%s%s%s%s%s%s !!\n",
 		host->mmc->index, cmd->opcode,
 		data ? (data->flags & MMC_DATA_WRITE ? " WR" : " RD") : "",
-- 
2.12.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] mmc: sunxi: change controller error info to debug level
  2017-03-16 13:29 [PATCH] mmc: sunxi: change controller error info to debug level Icenowy Zheng
@ 2017-03-20  8:59 ` Maxime Ripard
  2017-03-24  7:46 ` Ulf Hansson
  1 sibling, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2017-03-20  8:59 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Mar 16, 2017 at 09:29:03PM +0800, Icenowy Zheng wrote:
> The controller's errors are usually normal (for example, for MMC or SDIO
> cards, some errors are expected to happen; and for boards without a
> dedicated card detect pin the error info will even flood console and
> hide other normal messages) and hard to understand.
> 
> Change their print level to debug, thus it won't be shown to generic
> users.
> 
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170320/c10080f5/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] mmc: sunxi: change controller error info to debug level
  2017-03-16 13:29 [PATCH] mmc: sunxi: change controller error info to debug level Icenowy Zheng
  2017-03-20  8:59 ` Maxime Ripard
@ 2017-03-24  7:46 ` Ulf Hansson
  2017-03-24  7:52   ` Icenowy Zheng
  1 sibling, 1 reply; 4+ messages in thread
From: Ulf Hansson @ 2017-03-24  7:46 UTC (permalink / raw)
  To: linux-arm-kernel

On 16 March 2017 at 14:29, Icenowy Zheng <icenowy@aosc.xyz> wrote:
> The controller's errors are usually normal (for example, for MMC or SDIO
> cards, some errors are expected to happen; and for boards without a
> dedicated card detect pin the error info will even flood console and
> hide other normal messages) and hard to understand.
>
> Change their print level to debug, thus it won't be shown to generic
> users.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>

For some reason this change didn't enter the mmc patchtracker. However
I have picked it up for next anyway.

Thanks!

Kind regards
Uffe

> ---
>  drivers/mmc/host/sunxi-mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
> index 6ffcd2838272..0391c62cc99f 100644
> --- a/drivers/mmc/host/sunxi-mmc.c
> +++ b/drivers/mmc/host/sunxi-mmc.c
> @@ -489,7 +489,7 @@ static void sunxi_mmc_dump_errinfo(struct sunxi_mmc_host *host)
>                                       cmd->opcode == SD_IO_RW_DIRECT))
>                 return;
>
> -       dev_err(mmc_dev(host->mmc),
> +       dev_dbg(mmc_dev(host->mmc),
>                 "smc %d err, cmd %d,%s%s%s%s%s%s%s%s%s%s !!\n",
>                 host->mmc->index, cmd->opcode,
>                 data ? (data->flags & MMC_DATA_WRITE ? " WR" : " RD") : "",
> --
> 2.12.0
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] mmc: sunxi: change controller error info to debug level
  2017-03-24  7:46 ` Ulf Hansson
@ 2017-03-24  7:52   ` Icenowy Zheng
  0 siblings, 0 replies; 4+ messages in thread
From: Icenowy Zheng @ 2017-03-24  7:52 UTC (permalink / raw)
  To: linux-arm-kernel



24.03.2017, 15:46, "Ulf Hansson" <ulf.hansson@linaro.org>:
> On 16 March 2017 at 14:29, Icenowy Zheng <icenowy@aosc.xyz> wrote:
>> ?The controller's errors are usually normal (for example, for MMC or SDIO
>> ?cards, some errors are expected to happen; and for boards without a
>> ?dedicated card detect pin the error info will even flood console and
>> ?hide other normal messages) and hard to understand.
>>
>> ?Change their print level to debug, thus it won't be shown to generic
>> ?users.
>>
>> ?Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
>
> For some reason this change didn't enter the mmc patchtracker. However
> I have picked it up for next anyway.

Thanks!

Maybe it's because of the e-mail provider chosen by AOSC (Yandex.Mail).

Sorry. I will try to ask for a migration to other e-mail provider.

>
> Thanks!
>
> Kind regards
> Uffe
>
>> ?---
>> ??drivers/mmc/host/sunxi-mmc.c | 2 +-
>> ??1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> ?diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
>> ?index 6ffcd2838272..0391c62cc99f 100644
>> ?--- a/drivers/mmc/host/sunxi-mmc.c
>> ?+++ b/drivers/mmc/host/sunxi-mmc.c
>> ?@@ -489,7 +489,7 @@ static void sunxi_mmc_dump_errinfo(struct sunxi_mmc_host *host)
>> ???????????????????????????????????????cmd->opcode == SD_IO_RW_DIRECT))
>> ?????????????????return;
>>
>> ?- dev_err(mmc_dev(host->mmc),
>> ?+ dev_dbg(mmc_dev(host->mmc),
>> ?????????????????"smc %d err, cmd %d,%s%s%s%s%s%s%s%s%s%s !!\n",
>> ?????????????????host->mmc->index, cmd->opcode,
>> ?????????????????data ? (data->flags & MMC_DATA_WRITE ? " WR" : " RD") : "",
>> ?--
>> ?2.12.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-24  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-16 13:29 [PATCH] mmc: sunxi: change controller error info to debug level Icenowy Zheng
2017-03-20  8:59 ` Maxime Ripard
2017-03-24  7:46 ` Ulf Hansson
2017-03-24  7:52   ` Icenowy Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox