]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ACPI: PM: Adjust messages regarding postponed ACPI PM
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Jan 2026 13:38:41 +0000 (14:38 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Jan 2026 20:48:16 +0000 (21:48 +0100)
The debug messages added by commit f7599be2bb76 ("ACPI: PM: postpone
bringing devices to D0 unless we need them") in acpi_subsys_resume_early()
and acpi_subsys_resume() are not quite accurate because what is postponed
is not just a transition to D0, but also an adjustment of the device's
wakeup setting (which may involve disabling a GPE among other things).
Moreover, these messages don't even mention ACPI.

Rephrase them and adjust the style to match other messages in device_pm.c.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://patch.msgid.link/5969819.DvuYhMxLoT@rafael.j.wysocki
drivers/acpi/device_pm.c

index cff3186aa945328c37f1e9c9188e13efbbe82444..aa55ecfc2923cf06b943fd07fb5e6cac60e4673c 100644 (file)
@@ -1251,7 +1251,7 @@ static int acpi_subsys_resume_early(struct device *dev)
                return 0;
 
        if (pm && !pm->resume_early) {
-               dev_dbg(dev, "postponing D0 transition to normal resume stage\n");
+               dev_dbg(dev, "Postponing ACPI PM to normal resume stage\n");
                return 0;
        }
 
@@ -1273,7 +1273,7 @@ static int acpi_subsys_resume(struct device *dev)
        int ret = 0;
 
        if (!dev_pm_skip_resume(dev) && pm && !pm->resume_early) {
-               dev_dbg(dev, "executing postponed D0 transition\n");
+               dev_dbg(dev, "Applying postponed ACPI PM\n");
                ret = acpi_dev_resume(dev);
        }