diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-03-22 12:22:57 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-22 19:46:49 +0100 |
commit | da30a34a0edb88144ac10db5ef781ae84769af67 (patch) | |
tree | 74e634276c1a39840d0dc8be65dc1bde006082a8 /drivers/acpi/spcr.c | |
parent | 91d7b60a65d9f71230ea09b86d2058a884a3c2af (diff) | |
download | linux-stable-da30a34a0edb88144ac10db5ef781ae84769af67.tar.gz linux-stable-da30a34a0edb88144ac10db5ef781ae84769af67.tar.bz2 linux-stable-da30a34a0edb88144ac10db5ef781ae84769af67.zip |
ACPI: SPCR: Prefix error messages with FW_BUG
The table values that are not defined in the specification are
considered non-fatal errors in the code.
However, they are firmware bugs, so point this out in the messages by
prefixing them with FW_BUG.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/spcr.c')
-rw-r--r-- | drivers/acpi/spcr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/spcr.c b/drivers/acpi/spcr.c index 1eabfcd122ee..01d29ebdb9c2 100644 --- a/drivers/acpi/spcr.c +++ b/drivers/acpi/spcr.c @@ -110,12 +110,12 @@ int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console) u32 bit_width = table->serial_port.access_width; if (bit_width > ACPI_ACCESS_BIT_MAX) { - pr_err("Unacceptable wide SPCR Access Width. Defaulting to byte size\n"); + pr_err(FW_BUG "Unacceptable wide SPCR Access Width. Defaulting to byte size\n"); bit_width = ACPI_ACCESS_BIT_DEFAULT; } switch (ACPI_ACCESS_BIT_WIDTH((bit_width))) { default: - pr_err("Unexpected SPCR Access Width. Defaulting to byte size\n"); + pr_err(FW_BUG "Unexpected SPCR Access Width. Defaulting to byte size\n"); fallthrough; case 8: iotype = "mmio"; |