android_kernel_xiaomi_sm8350/arch/powerpc
Benjamin Herrenschmidt f704b8d1f0 [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>
2006-07-07 20:19:15 +10:00
..
boot [POWERPC] Add -fno-stack-protector to BOOTCFLAGS in arch/powerpc/boot/Makefile. 2006-07-07 20:19:15 +10:00
configs [POWERPC] fix up front-LED Kconfig 2006-07-07 20:19:15 +10:00
kernel [POWERPC] Fix legacy_serial.c error handling on 32 bits 2006-07-07 20:19:15 +10:00
lib Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
math-emu Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mm Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
oprofile [PATCH] oprofile: Fix unnecessary cleverness 2006-06-26 09:58:17 -07:00
platforms [POWERPC] Fix non-MPIC CHRPs with CONFIG_SMP set 2006-07-07 20:19:15 +10:00
sysdev [PATCH] powerpc: Fix loss of interrupts with MPIC 2006-07-05 09:29:43 -07:00
xmon Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
Kconfig [PATCH] KConfig: Spellchecking 'similarity' and 'independent' 2006-06-29 11:59:14 -07:00
Kconfig.debug [POWERPC] Add udbg support for RTAS console 2006-06-28 11:59:48 +10:00
Makefile