aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Schulte <matts@commtech-fastcom.com>2012-11-20 12:23:56 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-21 19:28:04 -0500
commitb7a7e14f654c80dfd3aa514adee663c74cfa4be9 (patch)
tree983d14ed2ec9e5e6bcf8b56e2438d064ab573e18
parentd02f81555362e0032080af62154dca00d5ec99e0 (diff)
serial: Optimization: check for presence of UPF_EXAR_EFR flag before serial_in
Optimization: check for presence of UPF_EXAR_EFR flag before serial_in Signed-off-by: Matt Schulte <matts@commtech-fastcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/8250/8250.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/8250/8250.c b/drivers/tty/serial/8250/8250.c
index 3624df674a31..39d970719f7d 100644
--- a/drivers/tty/serial/8250/8250.c
+++ b/drivers/tty/serial/8250/8250.c
@@ -911,9 +911,9 @@ static void autoconfig_16550a(struct uart_8250_port *up)
911 * found at offset 0x09. Instead check the Deice ID (DVID) 911 * found at offset 0x09. Instead check the Deice ID (DVID)
912 * register for a 2, 4 or 8 port UART. 912 * register for a 2, 4 or 8 port UART.
913 */ 913 */
914 status1 = serial_in(up, UART_EXAR_DVID); 914 if (up->port.flags & UPF_EXAR_EFR) {
915 if (status1 == 0x82 || status1 == 0x84 || status1 == 0x88) { 915 status1 = serial_in(up, UART_EXAR_DVID);
916 if (up->port.flags & UPF_EXAR_EFR) { 916 if (status1 == 0x82 || status1 == 0x84 || status1 == 0x88) {
917 DEBUG_AUTOCONF("Exar XR17V35x "); 917 DEBUG_AUTOCONF("Exar XR17V35x ");
918 up->port.type = PORT_XR17V35X; 918 up->port.type = PORT_XR17V35X;
919 up->capabilities |= UART_CAP_AFE | UART_CAP_EFR | 919 up->capabilities |= UART_CAP_AFE | UART_CAP_EFR |