Re: [PATCH v2] ACPI: glue: Reduce debug noise from acpi_device_notify()

From: Andy Shevchenko

Date: Sat Sep 05 2026 - 03:04:22 EST


On Fri, Sep 04, 2026 at 05:44:55PM +0200, Rafael J. Wysocki wrote:

> When debug is enabled in the ACPI glue code that handles binding
> devices to ACPI companions, acpi_device_notify() produces a lot of
> message noise related to devices that have no ACPI companions.
>
> Reduce that noise by checking the most obvious case, ACPI device
> objects, directly and returning from acpi_device_notify() in that
> case without printing any debug messages. Also avoid printing a
> debug message when there is no matching ACPI bus type definition for
> the given device, which is the case for the vast majority of devices.
>
> Additionally, make the debug messages that get printed more informative
> and change the format prefix to "ACPI/glue", so it is easier to filter
> these messages.

You are quick :-) But the comment I gave against v1 still stays here.
(TL;DR: I expect to see "ACPI: glue: " in pr_fmt().)

--
With Best Regards,
Andy Shevchenko