[PATCH 2/2] SERIAL: allow shared 8250_pnp interrupts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PNP devices can use shared interrupts, so check to see whether
we'll need SA_SHIRQ for request_irq().

The builtin PDH UART on the HP rx8640 is an example of an ACPI/PNP
device that uses a shareable level-triggered, active-low interrupt.
The interrupt can be shared in very large I/O configurations or by
artificially lowering IA64_DEF_LAST_DEVICE_VECTOR.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@xxxxxx>

Index: as3877/drivers/serial/8250_pnp.c
===================================================================
--- as3877.orig/drivers/serial/8250_pnp.c	2006-06-30 10:44:09.000000000 -0600
+++ as3877/drivers/serial/8250_pnp.c	2006-06-30 11:44:18.000000000 -0600
@@ -431,6 +431,8 @@
 #endif
 
 	port.flags |= UPF_SKIP_TEST | UPF_BOOT_AUTOCONF;
+	if (pnp_irq_flags(dev, 0) & IORESOURCE_IRQ_SHAREABLE)
+		port.flags |= UPF_SHARE_IRQ;
 	port.uartclk = 1843200;
 	port.dev = &dev->dev;
 
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux