From: Li Chen <chenl311@xxxxxxxxxxxxxxx>
This small series improves the kernel behavior and output when the ACPI SPCR
table is not present or not supported.
Currently, even on systems that completely lack an SPCR table, the kernel prints:
"Use ACPI SPCR as default console: Yes"
Or if with acpi=nospcr:
"Use ACPI SPCR as default console: No"
This may mislead users into thinking an SPCR table exists
when in fact there is no such table at all. This series addresses this in two steps:
Patch 1 ensures that acpi_parse_spcr() returns -ENODEV if CONFIG_ACPI_SPCR_TABLE is disabled.
Patch 2 updates arm64 acpi_boot_table_init() to only print the SPCR console message
if acpi_parse_spcr() succeeds.