* [PATCH] mmc_rescan: reduce verbosity
@ 2010-10-11 21:48 Eric Bénard
2010-10-12 1:50 ` Nicolas Pitre
0 siblings, 1 reply; 9+ messages in thread
From: Eric Bénard @ 2010-10-11 21:48 UTC (permalink / raw)
To: linux-mmc
since commit 820f2bcfdc32cd90061224c930cf670f961e12d1 mmc_rescan
includes a pr_info which prints 4 lines each second for hosts configured
with MMC_CAP_NEEDS_POLL. Tested on i.MX51's sdhci-esdhc.
This patch increase log level to debug (but maybe the right solution
would be to remove this log).
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
drivers/mmc/core/core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index c94565d..6ecfcd9 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1482,7 +1482,7 @@ void mmc_rescan(struct work_struct *work)
mmc_release_host(host);
goto out;
}
- pr_info("%s: %s: trying to init card at %u Hz\n",
+ pr_debug("%s: %s: trying to init card at %u Hz\n",
mmc_hostname(host), __func__, host->f_init);
mmc_power_up(host);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] mmc_rescan: reduce verbosity
2010-10-11 21:48 [PATCH] mmc_rescan: reduce verbosity Eric Bénard
@ 2010-10-12 1:50 ` Nicolas Pitre
2010-10-12 2:12 ` Chris Ball
0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Pitre @ 2010-10-12 1:50 UTC (permalink / raw)
To: Eric Bénard; +Cc: linux-mmc
[-- Attachment #1: Type: TEXT/PLAIN, Size: 422 bytes --]
On Mon, 11 Oct 2010, Eric Bénard wrote:
> since commit 820f2bcfdc32cd90061224c930cf670f961e12d1 mmc_rescan
> includes a pr_info which prints 4 lines each second for hosts configured
> with MMC_CAP_NEEDS_POLL. Tested on i.MX51's sdhci-esdhc.
> This patch increase log level to debug (but maybe the right solution
> would be to remove this log).
Indeed. Flooding the log with debug messages is not much better.
Nicolas
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] mmc_rescan: reduce verbosity
2010-10-12 1:50 ` Nicolas Pitre
@ 2010-10-12 2:12 ` Chris Ball
2010-10-12 3:00 ` Nicolas Pitre
0 siblings, 1 reply; 9+ messages in thread
From: Chris Ball @ 2010-10-12 2:12 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: Eric Bénard, linux-mmc
Hi,
On Mon, Oct 11, 2010 at 09:50:46PM -0400, Nicolas Pitre wrote:
> On Mon, 11 Oct 2010, Eric Bénard wrote:
> > since commit 820f2bcfdc32cd90061224c930cf670f961e12d1 mmc_rescan
> > includes a pr_info which prints 4 lines each second for hosts configured
> > with MMC_CAP_NEEDS_POLL. Tested on i.MX51's sdhci-esdhc.
> > This patch increase log level to debug (but maybe the right solution
> > would be to remove this log).
>
> Indeed. Flooding the log with debug messages is not much better.
Other options include:
(a) Turn the message into a DBG(). (CONFIG_MMC_DEBUG=y)
(b) Turn the message into a DBG(), predicated on !MMC_CAP_NEEDS_POLL.
(c) Remove the message.
Any thoughts? I'll go with (c) unless we agree on a better idea.
Thanks,
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] mmc_rescan: reduce verbosity
2010-10-12 2:12 ` Chris Ball
@ 2010-10-12 3:00 ` Nicolas Pitre
2010-10-12 6:00 ` Wolfram Sang
0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Pitre @ 2010-10-12 3:00 UTC (permalink / raw)
To: Chris Ball; +Cc: Eric Bénard, linux-mmc
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1013 bytes --]
On Tue, 12 Oct 2010, Chris Ball wrote:
> Hi,
>
> On Mon, Oct 11, 2010 at 09:50:46PM -0400, Nicolas Pitre wrote:
> > On Mon, 11 Oct 2010, Eric Bénard wrote:
> > > since commit 820f2bcfdc32cd90061224c930cf670f961e12d1 mmc_rescan
> > > includes a pr_info which prints 4 lines each second for hosts configured
> > > with MMC_CAP_NEEDS_POLL. Tested on i.MX51's sdhci-esdhc.
> > > This patch increase log level to debug (but maybe the right solution
> > > would be to remove this log).
> >
> > Indeed. Flooding the log with debug messages is not much better.
>
> Other options include:
>
> (a) Turn the message into a DBG(). (CONFIG_MMC_DEBUG=y)
> (b) Turn the message into a DBG(), predicated on !MMC_CAP_NEEDS_POLL.
> (c) Remove the message.
>
> Any thoughts? I'll go with (c) unless we agree on a better idea.
My preference would be (a). You don't lose the intended debugging aid
but it has to be turned on explicitly. The people who might care
most probably have CONFIG_MMC_DEBUG=y already.
Nicolas
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] mmc_rescan: reduce verbosity
2010-10-12 3:00 ` Nicolas Pitre
@ 2010-10-12 6:00 ` Wolfram Sang
2010-10-12 7:29 ` [PATCH v2] " Eric Bénard
0 siblings, 1 reply; 9+ messages in thread
From: Wolfram Sang @ 2010-10-12 6:00 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: Chris Ball, Eric Bénard, linux-mmc
[-- Attachment #1: Type: text/plain, Size: 1441 bytes --]
On Mon, Oct 11, 2010 at 11:00:30PM -0400, Nicolas Pitre wrote:
> On Tue, 12 Oct 2010, Chris Ball wrote:
>
> > Hi,
> >
> > On Mon, Oct 11, 2010 at 09:50:46PM -0400, Nicolas Pitre wrote:
> > > On Mon, 11 Oct 2010, Eric Bénard wrote:
> > > > since commit 820f2bcfdc32cd90061224c930cf670f961e12d1 mmc_rescan
> > > > includes a pr_info which prints 4 lines each second for hosts configured
> > > > with MMC_CAP_NEEDS_POLL. Tested on i.MX51's sdhci-esdhc.
> > > > This patch increase log level to debug (but maybe the right solution
> > > > would be to remove this log).
> > >
> > > Indeed. Flooding the log with debug messages is not much better.
> >
> > Other options include:
> >
> > (a) Turn the message into a DBG(). (CONFIG_MMC_DEBUG=y)
> > (b) Turn the message into a DBG(), predicated on !MMC_CAP_NEEDS_POLL.
> > (c) Remove the message.
> >
> > Any thoughts? I'll go with (c) unless we agree on a better idea.
>
> My preference would be (a). You don't lose the intended debugging aid
> but it has to be turned on explicitly. The people who might care
> most probably have CONFIG_MMC_DEBUG=y already.
+1 There has been a lot of discussion/issues about the initialization
frequency, so this output might be desired in special situations.
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2] mmc_rescan: reduce verbosity
2010-10-12 6:00 ` Wolfram Sang
@ 2010-10-12 7:29 ` Eric Bénard
2010-10-12 8:41 ` Wolfram Sang
2010-10-12 15:08 ` Chris Ball
0 siblings, 2 replies; 9+ messages in thread
From: Eric Bénard @ 2010-10-12 7:29 UTC (permalink / raw)
To: linux-mmc
since commit 820f2bcfdc32cd90061224c930cf670f961e12d1 mmc_rescan
includes a pr_info which prints 4 lines each second for hosts configured
with MMC_CAP_NEEDS_POLL. Tested on i.MX51's sdhci-esdhc.
This patch enable the log only if CONFIG_MMC_DEBUG is selected.
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
v2 : enable log only if CONFIG_MMC_DEBUG is selected
v1 : use pr_debug instead of pr_info
drivers/mmc/core/core.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index c94565d..cda9d29 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1482,9 +1482,10 @@ void mmc_rescan(struct work_struct *work)
mmc_release_host(host);
goto out;
}
+#ifdef CONFIG_MMC_DEBUG
pr_info("%s: %s: trying to init card at %u Hz\n",
mmc_hostname(host), __func__, host->f_init);
-
+#endif
mmc_power_up(host);
sdio_reset(host);
mmc_go_idle(host);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2] mmc_rescan: reduce verbosity
2010-10-12 7:29 ` [PATCH v2] " Eric Bénard
@ 2010-10-12 8:41 ` Wolfram Sang
2010-10-12 15:08 ` Chris Ball
1 sibling, 0 replies; 9+ messages in thread
From: Wolfram Sang @ 2010-10-12 8:41 UTC (permalink / raw)
To: Eric Bénard; +Cc: linux-mmc
[-- Attachment #1: Type: text/plain, Size: 594 bytes --]
On Tue, Oct 12, 2010 at 09:29:37AM +0200, Eric Bénard wrote:
> since commit 820f2bcfdc32cd90061224c930cf670f961e12d1 mmc_rescan
> includes a pr_info which prints 4 lines each second for hosts configured
> with MMC_CAP_NEEDS_POLL. Tested on i.MX51's sdhci-esdhc.
> This patch enable the log only if CONFIG_MMC_DEBUG is selected.
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] mmc_rescan: reduce verbosity
2010-10-12 7:29 ` [PATCH v2] " Eric Bénard
2010-10-12 8:41 ` Wolfram Sang
@ 2010-10-12 15:08 ` Chris Ball
2010-10-12 20:51 ` Hein_Tibosch
1 sibling, 1 reply; 9+ messages in thread
From: Chris Ball @ 2010-10-12 15:08 UTC (permalink / raw)
To: Eric Bénard; +Cc: linux-mmc, Wolfram Sang
Hi Eric,
On Tue, Oct 12, 2010 at 09:29:37AM +0200, Eric Bénard wrote:
> since commit 820f2bcfdc32cd90061224c930cf670f961e12d1 mmc_rescan
> includes a pr_info which prints 4 lines each second for hosts configured
> with MMC_CAP_NEEDS_POLL. Tested on i.MX51's sdhci-esdhc.
> This patch enable the log only if CONFIG_MMC_DEBUG is selected.
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> ---
> v2 : enable log only if CONFIG_MMC_DEBUG is selected
> v1 : use pr_debug instead of pr_info
> drivers/mmc/core/core.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
> index c94565d..cda9d29 100644
> --- a/drivers/mmc/core/core.c
> +++ b/drivers/mmc/core/core.c
> @@ -1482,9 +1482,10 @@ void mmc_rescan(struct work_struct *work)
> mmc_release_host(host);
> goto out;
> }
> +#ifdef CONFIG_MMC_DEBUG
> pr_info("%s: %s: trying to init card at %u Hz\n",
> mmc_hostname(host), __func__, host->f_init);
> -
> +#endif
> mmc_power_up(host);
> sdio_reset(host);
> mmc_go_idle(host);
> --
Thanks, applied to mmc-next.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] mmc_rescan: reduce verbosity
2010-10-12 15:08 ` Chris Ball
@ 2010-10-12 20:51 ` Hein_Tibosch
0 siblings, 0 replies; 9+ messages in thread
From: Hein_Tibosch @ 2010-10-12 20:51 UTC (permalink / raw)
To: Chris Ball; +Cc: Eric Bénard, linux-mmc, Wolfram Sang
On 12-10-2010 23:08, Chris Ball wrote:
> Hi Eric,
>
> On Tue, Oct 12, 2010 at 09:29:37AM +0200, Eric Bénard wrote:
>> since commit 820f2bcfdc32cd90061224c930cf670f961e12d1 mmc_rescan
>> includes a pr_info which prints 4 lines each second for hosts configured
>> with MMC_CAP_NEEDS_POLL. Tested on i.MX51's sdhci-esdhc.
>> This patch enable the log only if CONFIG_MMC_DEBUG is selected.
>>
>> Signed-off-by: Eric Bénard <eric@eukrea.com>
>> ---
>> v2 : enable log only if CONFIG_MMC_DEBUG is selected
>> v1 : use pr_debug instead of pr_info
>> drivers/mmc/core/core.c | 3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
>> index c94565d..cda9d29 100644
>> --- a/drivers/mmc/core/core.c
>> +++ b/drivers/mmc/core/core.c
>> @@ -1482,9 +1482,10 @@ void mmc_rescan(struct work_struct *work)
>> mmc_release_host(host);
>> goto out;
>> }
>> +#ifdef CONFIG_MMC_DEBUG
>> pr_info("%s: %s: trying to init card at %u Hz\n",
>> mmc_hostname(host), __func__, host->f_init);
>> -
>> +#endif
I first wrote this line while testing the patch for "configurable ID freq".
I left it in thinking it would only trigger while booting or mounting a
new card, not being aware of the MMC_CAP_NEEDS_POLL option.
Sorry for that,
Acked-by: Hein Tibosch <hein_tibosch@yahoo.es>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-10-12 21:59 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 21:48 [PATCH] mmc_rescan: reduce verbosity Eric Bénard
2010-10-12 1:50 ` Nicolas Pitre
2010-10-12 2:12 ` Chris Ball
2010-10-12 3:00 ` Nicolas Pitre
2010-10-12 6:00 ` Wolfram Sang
2010-10-12 7:29 ` [PATCH v2] " Eric Bénard
2010-10-12 8:41 ` Wolfram Sang
2010-10-12 15:08 ` Chris Ball
2010-10-12 20:51 ` Hein_Tibosch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).