]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[POWERPC] Fix legacy_serial.c error handling on 32 bits
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 4 Jul 2006 04:14:07 +0000 (14:14 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 7 Jul 2006 10:19:15 +0000 (20:19 +1000)
commitf704b8d1f080ee71b7a9a88bcf585e7dd4272f4b
treec3a1306ef6f17652ea8464bcde3479255251caf2
parente70e943847bdae13175bf3a8bca6328e369de90a
[POWERPC] Fix legacy_serial.c error handling on 32 bits

The code in legacy_serial.c wouldn't properly compare OF translation
results against OF_BAD_ADDR as it's using a phys_addr_t which is 32
bits on some 32-bit powerpc platforms. This fixes it by always using
a u64 which is what is returned by the OF parsing routines. It also
makes translation failure harmless for ISA serial ports.  If they
can't translate, we can't use the UART early, but we can still let the
8250 driver use it later on by using IO port accessors.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/legacy_serial.c