serial: fix UART_IIR_ID
authorFelipe Balbi <balbi@ti.com>
Wed, 23 Apr 2014 14:58:28 +0000 (09:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Apr 2014 23:16:33 +0000 (16:16 -0700)
UART IRQ Identification bitfield is 3
bits long (bits 3:1) but current mask only
masks 2 bits. Fix it.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/serial_reg.h

index e6322605b1380e64ed45208d6935729f0bfb9c08..99b47058816a8858c3116f2c76bd50f4a217a3ce 100644 (file)
@@ -32,7 +32,7 @@
 
 #define UART_IIR       2       /* In:  Interrupt ID Register */
 #define UART_IIR_NO_INT                0x01 /* No interrupts pending */
-#define UART_IIR_ID            0x06 /* Mask for the interrupt ID */
+#define UART_IIR_ID            0x0e /* Mask for the interrupt ID */
 #define UART_IIR_MSI           0x00 /* Modem status interrupt */
 #define UART_IIR_THRI          0x02 /* Transmitter holding register empty */
 #define UART_IIR_RDI           0x04 /* Receiver data interrupt */