• Ben Dooks's avatar
    ARM: meson: serial: don't reset port on uart startup · 00661dd8
    Ben Dooks authored
    When the uart startup entry is called, do not reset the port as this
    could cause issues with anything left in the FIFO from a previous operation
    such as a console write. Move the hardware reset to probe time and simply
    clear the errors before enabling the port.
    
    This fixes the issue where the console could become corrupted as there
    where characters left in the output or output fifo when a user process
    such as systemd would open/close the uart to transmit characters.
    
    For example, you get:
        [    3.252263] systemd[1]: Dete
    
    instead of:
        [    3.338801] systemd[1]: Detected architecture arm.
    Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
    Tested-by: default avatarCarlo Caione <carlo@endlessm.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    00661dd8
meson_uart.c 15.6 KB