From: Jamie Iles Date: Mon, 15 Aug 2011 09:17:51 +0000 (+0100) Subject: tty: serial: allow ports to override the irq handler X-Git-Tag: v5.15~23932^2~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a74036f51272975e9538e80cd1bb64dce164b208;p=platform%2Fkernel%2Flinux-starfive.git tty: serial: allow ports to override the irq handler Some serial ports may have unusal requirements for interrupt handling (e.g. the Synopsys DesignWare 8250-alike port and it's busy detect interrupt). Add a .handle_irq callback that can be used for platforms to override the interrupt behaviour in a similar fashion to the .serial_out and .serial_in callbacks. Signed-off-by: Jamie Iles Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 76e110363745..c31ae43c073d 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -300,6 +300,7 @@ struct uart_port { void (*set_termios)(struct uart_port *, struct ktermios *new, struct ktermios *old); + int (*handle_irq)(struct uart_port *); void (*pm)(struct uart_port *, unsigned int state, unsigned int old); unsigned int irq; /* irq number */