serial: 8250: Do XR17V35X specific wakeup in serial8250_do_startup
authorJoerg Roedel <jroedel@suse.de>
Thu, 16 Jul 2015 08:29:13 +0000 (10:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2015 00:49:42 +0000 (17:49 -0700)
commitda891641b6c92e260966dfce3dd93111d08656c8
treede80d6df1227a72d0bfa45f876445ac4a8877dce
parentee3ad90be5ec5e94a45aac597a23b1050cd4f1b0
serial: 8250: Do XR17V35X specific wakeup in serial8250_do_startup

The XR17V35X UART needs the ECB bit set in its XR_EFR
register to enable access to IER [7:5], ISR [5:4], FCR[5:4],
MCR[7:5], and MSR [7:0].

Also reset the IER register to mask interrupts after access
to all bits of this register has been enabled.

This makes my 8-port XR17V35X working with the in-kernel
serial driver.

Cc: Joe Schultz <jschultz@xes-inc.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Reviewed-by: Michael Welling <mwelling@ieee.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c