linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci: Stop advertising the driver in dmesg
@ 2025-10-07 13:15 Linus Walleij
  2025-10-07 14:20 ` Ulf Hansson
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2025-10-07 13:15 UTC (permalink / raw)
  To: Adrian Hunter, Ulf Hansson; +Cc: linux-mmc, linux-kernel, Linus Walleij

As much as we have grown used to seeing this message on
every kernel boot, it does not add any technical value.

Demote the init banner to pr_debug() like other similar
messages in the driver and drop the copyright message
altogether.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/mmc/host/sdhci.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index ac7e11f37af71fa5a70eb579fd812227b9347f83..001802a3aa202c4d8f185ff4924838579ee44c4f 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -4999,9 +4999,8 @@ EXPORT_SYMBOL_GPL(sdhci_remove_host);
 
 static int __init sdhci_drv_init(void)
 {
-	pr_info(DRIVER_NAME
-		": Secure Digital Host Controller Interface driver\n");
-	pr_info(DRIVER_NAME ": Copyright(c) Pierre Ossman\n");
+	pr_debug(DRIVER_NAME
+		 ": Secure Digital Host Controller Interface driver\n");
 
 	return 0;
 }

---
base-commit: fd94619c43360eb44d28bd3ef326a4f85c600a07
change-id: 20251007-mmc-no-advert-8f5646c44dd6

Best regards,
-- 
Linus Walleij <linus.walleij@linaro.org>


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

* Re: [PATCH] mmc: sdhci: Stop advertising the driver in dmesg
  2025-10-07 13:15 [PATCH] mmc: sdhci: Stop advertising the driver in dmesg Linus Walleij
@ 2025-10-07 14:20 ` Ulf Hansson
  2025-10-07 15:30   ` Adrian Hunter
  0 siblings, 1 reply; 3+ messages in thread
From: Ulf Hansson @ 2025-10-07 14:20 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Adrian Hunter, linux-mmc, linux-kernel

On Tue, 7 Oct 2025 at 15:15, Linus Walleij <linus.walleij@linaro.org> wrote:
>
> As much as we have grown used to seeing this message on
> every kernel boot, it does not add any technical value.
>
> Demote the init banner to pr_debug() like other similar
> messages in the driver and drop the copyright message
> altogether.
>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/mmc/host/sdhci.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index ac7e11f37af71fa5a70eb579fd812227b9347f83..001802a3aa202c4d8f185ff4924838579ee44c4f 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -4999,9 +4999,8 @@ EXPORT_SYMBOL_GPL(sdhci_remove_host);
>
>  static int __init sdhci_drv_init(void)
>  {
> -       pr_info(DRIVER_NAME
> -               ": Secure Digital Host Controller Interface driver\n");
> -       pr_info(DRIVER_NAME ": Copyright(c) Pierre Ossman\n");
> +       pr_debug(DRIVER_NAME
> +                ": Secure Digital Host Controller Interface driver\n");
>

Why do we need a print at all during module init?

Typically sdhci drivers end up printing a message at the log level if
they succeed to probe in __sdhci_add_host() - along with the other
error/debug messages during ->probe(). That seems sufficient to me,
but I'm not sure what other people think.

Kind regards
Uffe

>         return 0;
>  }
>
> ---
> base-commit: fd94619c43360eb44d28bd3ef326a4f85c600a07
> change-id: 20251007-mmc-no-advert-8f5646c44dd6
>
> Best regards,
> --
> Linus Walleij <linus.walleij@linaro.org>
>

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

* Re: [PATCH] mmc: sdhci: Stop advertising the driver in dmesg
  2025-10-07 14:20 ` Ulf Hansson
@ 2025-10-07 15:30   ` Adrian Hunter
  0 siblings, 0 replies; 3+ messages in thread
From: Adrian Hunter @ 2025-10-07 15:30 UTC (permalink / raw)
  To: Ulf Hansson, Linus Walleij; +Cc: linux-mmc, linux-kernel

On 07/10/2025 17:20, Ulf Hansson wrote:
> On Tue, 7 Oct 2025 at 15:15, Linus Walleij <linus.walleij@linaro.org> wrote:
>>
>> As much as we have grown used to seeing this message on
>> every kernel boot, it does not add any technical value.
>>
>> Demote the init banner to pr_debug() like other similar
>> messages in the driver and drop the copyright message
>> altogether.
>>
>> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>> ---
>>  drivers/mmc/host/sdhci.c | 5 ++---
>>  1 file changed, 2 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
>> index ac7e11f37af71fa5a70eb579fd812227b9347f83..001802a3aa202c4d8f185ff4924838579ee44c4f 100644
>> --- a/drivers/mmc/host/sdhci.c
>> +++ b/drivers/mmc/host/sdhci.c
>> @@ -4999,9 +4999,8 @@ EXPORT_SYMBOL_GPL(sdhci_remove_host);
>>
>>  static int __init sdhci_drv_init(void)
>>  {
>> -       pr_info(DRIVER_NAME
>> -               ": Secure Digital Host Controller Interface driver\n");
>> -       pr_info(DRIVER_NAME ": Copyright(c) Pierre Ossman\n");
>> +       pr_debug(DRIVER_NAME
>> +                ": Secure Digital Host Controller Interface driver\n");
>>
> 
> Why do we need a print at all during module init?
> 
> Typically sdhci drivers end up printing a message at the log level if
> they succeed to probe in __sdhci_add_host() - along with the other
> error/debug messages during ->probe(). That seems sufficient to me,
> but I'm not sure what other people think.

I tend to agree.  In include/linux/module.h it says
/* Each module must use one module_init(). */
but I am not sure that is true.  If not, maybe sdhci_drv_init()
and sdhci_drv_exit() could be removed.


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

end of thread, other threads:[~2025-10-07 15:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-07 13:15 [PATCH] mmc: sdhci: Stop advertising the driver in dmesg Linus Walleij
2025-10-07 14:20 ` Ulf Hansson
2025-10-07 15:30   ` Adrian Hunter

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).