diff options
author | Hongyu Xie <xiehongyu1@kylinos.cn> | 2023-05-01 15:09:09 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-13 19:32:21 +0900 |
commit | 6d8c1fca0a6ee4915781ded60000b3cc2c076e29 (patch) | |
tree | b6aea39bd9394fca6d4dbc1e94174be1f3380292 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cf9aa72d2f91defea23fe29b9e8e941bb2486d5c (diff) |
serial: pl011: set UART011_CR_RXE in pl011_set_termios after port shutdown
UART011_CR_RXE is set in pl011_startup() during normal initialization, and
cleared by pl011_disable_uart() during port shutdown.
You can use a none-console port in poll mode like kgdboc does with
tty_find_polling_driver() after a port shutdown. But pl011_startup() is not
called in tty_find_polling_driver(). So you need to set UART011_CR_RXE to
reenable receive function.
Not sure setting UART011_CR_RXE in pl011_set_termios() is a good idea
through.
Signed-off-by: Hongyu Xie <xiehongyu1@kylinos.cn>
Link: https://lore.kernel.org/r/20230501070909.1144547-1-xiehongyu1@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions