Commit 856608ee authored by Shaohua Li's avatar Shaohua Li Committed by Len Brown

pnp: Failed to activate device 00:0a - Samsung P35 XVM 1600 III

PNP_WRITE requires protocol supports .set. If ACPI doesn't support _SRS, .set ismeanless, so PNP_WRITE.
Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent d0c4c9d4
...@@ -183,7 +183,7 @@ static int __init pnpacpi_add_device(struct acpi_device *device) ...@@ -183,7 +183,7 @@ static int __init pnpacpi_add_device(struct acpi_device *device)
if (ACPI_SUCCESS(status)) if (ACPI_SUCCESS(status))
dev->capabilities |= PNP_CONFIGURABLE; dev->capabilities |= PNP_CONFIGURABLE;
dev->capabilities |= PNP_READ; dev->capabilities |= PNP_READ;
if (device->flags.dynamic_status) if (device->flags.dynamic_status && (dev->capabilities & PNP_CONFIGURABLE))
dev->capabilities |= PNP_WRITE; dev->capabilities |= PNP_WRITE;
if (device->flags.removable) if (device->flags.removable)
dev->capabilities |= PNP_REMOVABLE; dev->capabilities |= PNP_REMOVABLE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment