Message ID | 20221004103341.12646-2-jirislaby@kernel.org (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
Series | [1/2] ACPI: resource: do IRQ override on LENOVO IdeaPad | expand |
diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 8d13e94bb921..497d626185e4 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -508,8 +508,11 @@ static void acpi_dev_get_irqresource(struct resource *res, u32 gsi, u8 pol = p ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH; if (triggering != trig || polarity != pol) { - pr_warn("ACPI: IRQ %d override to %s, %s\n", gsi, - t ? "level" : "edge", p ? "low" : "high"); + pr_warn("ACPI: IRQ %d override to %s%s, %s%s\n", gsi, + t ? "level" : "edge", + trig == triggering ? "" : "(!)", + p ? "low" : "high", + pol == polarity ? "" : "(!)"); triggering = trig; polarity = pol; }
Use an exclamation mark to note which of the properties was overridden. Cc: "Rafael J. Wysocki" <rafael@kernel.org> Cc: Len Brown <lenb@kernel.org> Cc: linux-acpi@vger.kernel.org Cc: Chuanhong Guo <gch981213@gmail.com> Cc: Tighe Donnelly <tighe.donnelly@protonmail.com> Cc: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> --- drivers/acpi/resource.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)