[RFC PATCH] usb: reduce kernel log spam on driver registration

Alim Akhtar alim.akhtar at samsung.com
Thu Aug 25 21:01:57 PDT 2022



>-----Original Message-----
>From: Russell King (Oracle) [mailto:linux at armlinux.org.uk]
>Sent: Thursday, August 25, 2022 11:40 PM
>To: Alim Akhtar <alim.akhtar at samsung.com>
>Cc: 'Ard Biesheuvel' <ardb at kernel.org>; linux-kernel at vger.kernel.org;
>'Alexandre Belloni' <alexandre.belloni at bootlin.com>; linux-samsung-
>soc at vger.kernel.org; 'Tomer Maimon' <tmaimon77 at gmail.com>; linux-
>omap at vger.kernel.org; 'Avi Fishman' <avifishman70 at gmail.com>; 'Greg
>Kroah-Hartman' <gregkh at linuxfoundation.org>; linux-usb at vger.kernel.org;
>'Tali Perry' <tali.perry1 at gmail.com>; 'Nancy Yuen' <yuenn at google.com>;
>'Krzysztof Kozlowski' <krzysztof.kozlowski at linaro.org>; 'Alan Stern'
><stern at rowland.harvard.edu>; 'Patrice Chotard'
><patrice.chotard at foss.st.com>; 'Patrick Venture' <venture at google.com>;
>'Vladimir Zapolskiy' <vz at mleia.com>; 'Claudiu Beznea'
><claudiu.beznea at microchip.com>; linux-arm-kernel at lists.infradead.org;
>'Benjamin Fair' <benjaminfair at google.com>
>Subject: Re: [RFC PATCH] usb: reduce kernel log spam on driver registration
>
>On Thu, Aug 25, 2022 at 10:53:44PM +0530, Alim Akhtar wrote:
>> >Drivers are typically supposed to be quiet unless they are actually
>> >probed,
>> but
>> >for some reason, USB host controllers seem to be exempt from this
>> >rule, and happily broadcast their existence into the kernel log at
>> >boot even if the hardware in question is nowhere to be found.
>> >
>> >Let's fix that, and remove these pr_info() calls.
>> >
>> How about just change pr_info() to pr_debug() instead?
>
>Do the messages serve a useful purpose that the initcall_debug kernel
>parameter (that doesn't require #define DEBUG to be set while compiling and
>thus can be used with any kernel) doesn't provide?
>
Ah, right,  initcall_debug will do the job.
So removing pr_info() from init call looks good.
Thanks.

Hi Ard
Feel free to add 

Reviewed-by: Alim Akhtar <alim.akhtar at samsung.com>


>--
>RMK's Patch system: https://protect2.fireeye.com/v1/url?k=3b37dc19-
>5abcc93c-3b365756-74fe485cbff6-6a25f0b5c8476bae&q=1&e=752dac9b-cfef-
>4919-8665-
>8a220aac5d96&u=https%3A%2F%2Fwww.armlinux.org.uk%2Fdeveloper%2Fp
>atches%2F
>FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!




More information about the linux-arm-kernel mailing list