diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-02-17 15:09:59 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-17 15:09:59 -0500 |
commit | 48c871c1f6a7c7044dd76774fb469e65c7e2e4e8 (patch) | |
tree | da3aa535c98cc0957851354ceb0fbff7482d7a9d /drivers/serial/8250.c | |
parent | 1a1689344add3333d28d1b5495d8043a3877d01c (diff) | |
parent | 4409d28140d9a6e6e3f4f1fdaf7234c4b965d954 (diff) |
Merge branch 'gfar' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into upstream
Diffstat (limited to 'drivers/serial/8250.c')
-rw-r--r-- | drivers/serial/8250.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 5261f0af8b10..2964ca9df5a0 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
@@ -920,12 +920,16 @@ static void autoconfig(struct uart_8250_port *up, unsigned int probeflags) | |||
920 | #ifdef __i386__ | 920 | #ifdef __i386__ |
921 | outb(0xff, 0x080); | 921 | outb(0xff, 0x080); |
922 | #endif | 922 | #endif |
923 | scratch2 = serial_inp(up, UART_IER); | 923 | /* |
924 | * Mask out IER[7:4] bits for test as some UARTs (e.g. TL | ||
925 | * 16C754B) allow only to modify them if an EFR bit is set. | ||
926 | */ | ||
927 | scratch2 = serial_inp(up, UART_IER) & 0x0f; | ||
924 | serial_outp(up, UART_IER, 0x0F); | 928 | serial_outp(up, UART_IER, 0x0F); |
925 | #ifdef __i386__ | 929 | #ifdef __i386__ |
926 | outb(0, 0x080); | 930 | outb(0, 0x080); |
927 | #endif | 931 | #endif |
928 | scratch3 = serial_inp(up, UART_IER); | 932 | scratch3 = serial_inp(up, UART_IER) & 0x0f; |
929 | serial_outp(up, UART_IER, scratch); | 933 | serial_outp(up, UART_IER, scratch); |
930 | if (scratch2 != 0 || scratch3 != 0x0F) { | 934 | if (scratch2 != 0 || scratch3 != 0x0F) { |
931 | /* | 935 | /* |