aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarb Abdulhamid <harba@codeaurora.org>2016-03-01 14:31:45 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-03-09 17:50:55 -0500
commit86e75410f067e4ff09d6a94d6bb6800ec956ccfe (patch)
treed5d507cb6b95d13558bc88013400dc672a7e2a29
parentf6cede5b49e822ebc41a099fe41ab4989f64e2cb (diff)
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>
-rw-r--r--drivers/pnp/pnpacpi/rsparser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pnp/pnpacpi/rsparser.c b/drivers/pnp/pnpacpi/rsparser.c
index 05796495be0e..4b717c699313 100644
--- a/drivers/pnp/pnpacpi/rsparser.c
+++ b/drivers/pnp/pnpacpi/rsparser.c
@@ -252,6 +252,10 @@ static acpi_status pnpacpi_allocated_resource(struct acpi_resource *res,
252 case ACPI_RESOURCE_TYPE_GENERIC_REGISTER: 252 case ACPI_RESOURCE_TYPE_GENERIC_REGISTER:
253 break; 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 default: 259 default:
256 dev_warn(&dev->dev, "unknown resource type %d in _CRS\n", 260 dev_warn(&dev->dev, "unknown resource type %d in _CRS\n",
257 res->type); 261 res->type);