On Thu, Sep 10, 2015 at 11:46:50AM +0800, Aaron Lu wrote: > I'm not so sure of the below part: > " > The failure of executing the _STA control method will cause the device > node not having the acpi_device structure created and then in the SPI > ACPI enumerate function acpi_spi_add_device, it will not be created and > used. > " With the above said, I wonder if the following patch which ignores the error return of the _STA and set status to 0 makes any difference? diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index ec256352f423..418c8a7cec91 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -2293,7 +2293,7 @@ static int acpi_bus_type_and_status(acpi_handle handle, int *type, *type = ACPI_BUS_TYPE_DEVICE; status = acpi_bus_get_status_handle(handle, sta); if (ACPI_FAILURE(status)) - return -ENODEV; + *sta = 0; break; case ACPI_TYPE_PROCESSOR: *type = ACPI_BUS_TYPE_PROCESSOR; -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html