aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/esp32_uart.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2023-10-09 21:18:39 +0000
committerGreg Kroah-Hartman <[email protected]>2023-10-17 08:17:02 +0000
commit4293b09251490fe493c3fc5e0d3de7168fe70039 (patch)
treeddabe080a39633dd1e14eb4221891c5c6911eac5 /drivers/tty/serial/esp32_uart.c
parentvgacon: rework screen_info #ifdef checks (diff)
downloadkernel-4293b09251490fe493c3fc5e0d3de7168fe70039.tar.gz
kernel-4293b09251490fe493c3fc5e0d3de7168fe70039.zip
dummycon: limit Arm console size hack to footbridge
The dummycon default console size used to be determined by architecture, but now this is a Kconfig setting on everything except ARM. Tracing this back in the historic git trees, this was used to match the size of VGA console or VGA framebuffer on early machines, but nowadays that code is no longer used, except probably on the old footbridge/netwinder since that is the only one that supports vgacon. On machines with a framebuffer, booting with DT so far results in always using the hardcoded 80x30 size in dummycon, while on ATAGS the setting can come from a bootloader specific override. Both seem to be worse choices than the Kconfig setting, since the actual text size for fbcon also depends on the selected font. Make this work the same way as everywhere else and use the normal Kconfig setting, except for the footbridge with vgacon, which keeps using the traditional code. If vgacon is disabled, footbridge can also ignore the setting. This means the screen_info only has to be provided when either vgacon or EFI are enabled now. To limit the amount of surprises on Arm, change the Kconfig default to the previously used 80x30 setting instead of the usual 80x25. Reviewed-by: Thomas Zimmermann <[email protected]> Tested-by: Linus Walleij <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Acked-by: Helge Deller <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/esp32_uart.c')
0 files changed, 0 insertions, 0 deletions