]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36721e635c1b23704a5e706a69ec788f854ab290
tree21d6c4a885ea8fb7c7ee64ed7f77b845281e5980
parent9718479f233e6e871a4b4c9a96339f378a238308
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