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: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Родитель
d0c4c9d4a2
Коммит
856608ee5e
|
@ -183,7 +183,7 @@ static int __init pnpacpi_add_device(struct acpi_device *device)
|
|||
if (ACPI_SUCCESS(status))
|
||||
dev->capabilities |= PNP_CONFIGURABLE;
|
||||
dev->capabilities |= PNP_READ;
|
||||
if (device->flags.dynamic_status)
|
||||
if (device->flags.dynamic_status && (dev->capabilities & PNP_CONFIGURABLE))
|
||||
dev->capabilities |= PNP_WRITE;
|
||||
if (device->flags.removable)
|
||||
dev->capabilities |= PNP_REMOVABLE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче