]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PNP / ACPI: add ACPI_RESOURCE_TYPE_SERIAL_BUS as a valid type
authorHarb Abdulhamid <harba@codeaurora.org>
Tue, 1 Mar 2016 19:31:45 +0000 (13:31 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 22:50:55 +0000 (23:50 +0100)
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>
drivers/pnp/pnpacpi/rsparser.c

index 05796495be0e4ada9ba9b2995be1698c79fed1e8..4b717c69931327d2045810ccea33164c012c6417 100644 (file)
@@ -252,6 +252,10 @@ static acpi_status pnpacpi_allocated_resource(struct acpi_resource *res,
        case ACPI_RESOURCE_TYPE_GENERIC_REGISTER:
                break;
 
+       case ACPI_RESOURCE_TYPE_SERIAL_BUS:
+               /* serial bus connections (I2C/SPI/UART) are not pnp */
+               break;
+
        default:
                dev_warn(&dev->dev, "unknown resource type %d in _CRS\n",
                         res->type);