]> 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)
commit53da34506ebe161fafed3f44de5dfd7100f5d926
tree21d6c4a885ea8fb7c7ee64ed7f77b845281e5980
parent07b4d30582db9d9bcc32da8b5cf6260f002a2b85
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