Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PNP / ACPI: add ACPI_RESOURCE_TYPE_SERIAL_BUS as a valid type

An error message is printed for resources of type 19, which is a valid
supported resource type. The Firmware Test Suite tool (fwts) reports
this as a test failure. This change fixes the false test failures
for ASL that use type 19 (ACPI_RESOURCE_TYPE_SERIAL_BUS) resources.

Signed-off-by: Harb Abdulhamid <harba@codeaurora.org>
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Harb Abdulhamid and committed by
Rafael J. Wysocki
86e75410 f6cede5b

+4
+4
drivers/pnp/pnpacpi/rsparser.c
··· 252 252 case ACPI_RESOURCE_TYPE_GENERIC_REGISTER: 253 253 break; 254 254 255 + case ACPI_RESOURCE_TYPE_SERIAL_BUS: 256 + /* serial bus connections (I2C/SPI/UART) are not pnp */ 257 + break; 258 + 255 259 default: 256 260 dev_warn(&dev->dev, "unknown resource type %d in _CRS\n", 257 261 res->type);