All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH - Resend] PNPACPI: only parse device that have CRS method
@ 2005-09-11 10:12 ` matthieu castet
  0 siblings, 0 replies; 6+ messages in thread
From: matthieu castet @ 2005-09-11 10:12 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: Bjorn Helgaas, Adam Belay, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	Shaohua Li, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

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


[-- Attachment #2: pnpacpi_nocrs.patch --]
[-- Type: text/x-patch, Size: 581 bytes --]

Index: linux-2.6.13rc/drivers/pnp/pnpacpi/core.c
===================================================================
--- linux-2.6.13rc.orig/drivers/pnp/pnpacpi/core.c	2005-08-28 19:24:40.000000000 +0200
+++ linux-2.6.13rc/drivers/pnp/pnpacpi/core.c	2005-08-28 19:26:35.000000000 +0200
@@ -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;
 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-09-12 14:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-11 10:12 [PATCH - Resend] PNPACPI: only parse device that have CRS method matthieu castet
2005-09-11 10:12 ` matthieu castet
2005-09-11 16:54 ` Meelis Roos
2005-09-11 17:06   ` matthieu castet
2005-09-11 18:44     ` Meelis Roos
2005-09-12 14:39 ` Bjorn Helgaas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.