public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] workaround for pnp device interrupt
@ 2005-11-01  2:03 Shaohua Li
  0 siblings, 0 replies; only message in thread
From: Shaohua Li @ 2005-11-01  2:03 UTC (permalink / raw)
  To: lkml; +Cc: akpm, Krzysztof Oledzki

Workaround for Krzysztof's system, which makes RTC interrupt level
triggered. Andrew, please give it a try in -mm tree, let's see if it
breaks other systems.

http://bugzilla.kernel.org/show_bug.cgi?id=5243

Thanks,
Shaohua

--- a/drivers/pnp/pnpacpi/rsparser.c	2005-10-10 09:25:31.000000000 +0800
+++ b/drivers/pnp/pnpacpi/rsparser.c	2005-10-10 09:22:13.000000000 +0800
@@ -89,6 +89,12 @@ pnpacpi_parse_allocated_irqresource(stru
 		return;
 
 	res->irq_resource[i].flags = IORESOURCE_IRQ;  // Also clears _UNSET flag
+#ifdef CONFIG_X86
+	if (gsi < 16 && edge_level != ACPI_EDGE_SENSITIVE) {
+		pnp_err("Legacy PNP IRQ %d should be edge trigger", gsi);
+		edge_level = ACPI_EDGE_SENSITIVE;
+	}
+#endif
 	irq = acpi_register_gsi(gsi, edge_level, active_high_low);
 	if (irq < 0) {
 		res->irq_resource[i].flags |= IORESOURCE_DISABLED;



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-01  1:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-01  2:03 [PATCH] workaround for pnp device interrupt Shaohua Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox