serial: earlycon: Extend earlycon command line option to support 64-bit addresses
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Fri, 2 Sep 2016 11:20:21 +0000 (13:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Sep 2016 13:03:35 +0000 (15:03 +0200)
commit46e36683f433528bfb7e5754ca5c5c86c204c40a
tree21d6c4a885ea8fb7c7ee64ed7f77b845281e5980
parent8f975fe49dba5d15a828f34ad8ec3dc8beb60ca0
serial: earlycon: Extend earlycon command line option to support 64-bit addresses

earlycon implementation used "unsigned long" internally, but there are systems
(ARM with LPAE) where sizeof(unsigned long) == 4 and uart is mapped beyond 4GiB
address range.

Switch to resource_size_t internally and replace obsoleted simple_strtoul() with
kstrtoull().

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
drivers/tty/serial/earlycon.c
drivers/tty/serial/serial_core.c
include/linux/serial_core.h