Skip to content

Commit

Permalink
tty/8250 Add XR17D15x devices to the exar_handle_irq override
Browse files Browse the repository at this point in the history
Add XR17D15x devices to the exar_handle_irq override: they have the
same extra interrupt register that could fire and never be serviced by
the standard handle_irq.

Signed-off-by: Matt Schulte <matts@commtech-fastcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Matt Schulte authored and Greg Kroah-Hartman committed Nov 22, 2012
1 parent 81db077 commit 30fa96a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/tty/serial/8250/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,8 @@ static int exar_handle_irq(struct uart_port *port)

ret = serial8250_handle_irq(port, iir);

if (port->type == PORT_XR17V35X) {
if ((port->type == PORT_XR17V35X) ||
(port->type == PORT_XR17D15X)) {
int0 = serial_port_in(port, 0x80);
int1 = serial_port_in(port, 0x81);
int2 = serial_port_in(port, 0x82);
Expand Down Expand Up @@ -2689,7 +2690,8 @@ static void serial8250_config_port(struct uart_port *port, int flags)
serial8250_release_std_resource(up);

/* Fixme: probably not the best place for this */
if (port->type == PORT_XR17V35X)
if ((port->type == PORT_XR17V35X) ||
(port->type == PORT_XR17D15X))
port->handle_irq = exar_handle_irq;
}

Expand Down

0 comments on commit 30fa96a

Please sign in to comment.