Skip to contentSkip to conversation

PNPACPI: only parse device that have CRS method

PATCH Superseded matthieu castet 1 participant 1 message Aug 28, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PNPACPI: only parse device that have CRS method

Hi,

this patch blacklist device that don't have CRS method as there are useless for pnp layer as they don't provide any resource.

Please comment and consider for inclusion.

Thanks,

Matthieu

drivers/pnp/pnpacpi/core.c +2 -1
Index: linux-2.6.13rc/drivers/pnp/pnpacpi/core.c
===================================================================
@@ -131,7 +131,8 @@
 	struct pnp_id *dev_id;
 	struct pnp_dev *dev;
 
-	if (!ispnpidacpi(acpi_device_hid(device)) ||
+	status = acpi_get_handle(device->handle, "_CRS", &temp);
+	if (ACPI_FAILURE(status) || !ispnpidacpi(acpi_device_hid(device)) ||
 		is_exclusive_device(device))
 		return 0;