]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.7.4/tty-8250_dw-fix-inverted-arguments-to-serial_out-in-irq-handler.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.7.4 / tty-8250_dw-fix-inverted-arguments-to-serial_out-in-irq-handler.patch
1 From 68e56cb3a068f9c30971c6117fbbd1e32918e49e Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Mon, 14 Jan 2013 20:09:26 +0100
4 Subject: tty: 8250_dw: Fix inverted arguments to serial_out in IRQ handler
5
6 From: Maxime Ripard <maxime.ripard@free-electrons.com>
7
8 commit 68e56cb3a068f9c30971c6117fbbd1e32918e49e upstream.
9
10 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
11 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12
13 ---
14 drivers/tty/serial/8250/8250_dw.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/tty/serial/8250/8250_dw.c
18 +++ b/drivers/tty/serial/8250/8250_dw.c
19 @@ -79,7 +79,7 @@ static int dw8250_handle_irq(struct uart
20 } else if ((iir & UART_IIR_BUSY) == UART_IIR_BUSY) {
21 /* Clear the USR and write the LCR again. */
22 (void)p->serial_in(p, UART_USR);
23 - p->serial_out(p, d->last_lcr, UART_LCR);
24 + p->serial_out(p, UART_LCR, d->last_lcr);
25
26 return 1;
27 }