serial: uart_poll_init() should power on the UART
authorDouglas Anderson <dianders@chromium.org>
Thu, 16 Mar 2023 20:20:56 +0000 (13:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2023 08:51:52 +0000 (10:51 +0200)
commit5e227ef2aa388f14ceeafa65eb8a38fa37918eb4
tree7dbdeb2f91221e5a3c209588c371879c09dd7c8a
parentafe3154ba87e798de87ab65c72d6e3f6cd32d9d1
serial: uart_poll_init() should power on the UART

On Qualcomm devices which use the "geni" serial driver, kdb/kgdb won't
be very happy if you use it but the resources of the port haven't been
powered on. Today kdb/kgdb rely on someone else powering the port
on. This could be the normal kernel console or an agetty running.
Let's fix this to explicitly power things on when setting up a polling
driver.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20230316132027.RESEND.1.I106c39498d8094c6f5e7ada42c7db17aa5c64e48@changeid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c