Skip to content

tty: serial: Fix kgdb on qcom-geni-serial when no other UART users

Douglas Anderson linux-arm-msm linux-serial lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2serial: uart_poll_init() should power on the UARTdrivers/tty/serial/serial_core.c+6 -00 replies
2/2tty: serial: qcom-geni-serial: Add a poll_init() functiondrivers/tty/serial/qcom_geni_serial.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RESEND PATCH 0/2] tty: serial: Fix kgdb on qcom-geni-serial when no other UART users

Today to get kgdb to work on qcom-geni-serial devices you need _something_ to init/power on the UART. This could either the kernel console output or an "agetty" running on the port. If nothing else powers the port then you'll end up getting a silent hang when you try to enter kgdb.

Let's fix this. The first patch here is for the tty layer to make sure that we power on the port when we init it for polling. This would be important for any drivers similar to qcom-geni-serial that actually need to be powered on. The second patch here hooks up the poll_init() function for qcom-geni-serial, leveraging an existing function in the driver that does everything we need.

Originally these two patches were bundled together as pathes 2 and 3 of a 3-patch series. We no longer need the first patch from the orginal series since we landed a similar patch from Johan [1] instead. The second two patches are still useful, though, so I've reposted them alone and added this cover letter.

[1] https://lore.kernel.org/r/[email protected]

Douglas Anderson (2):
serial: uart_poll_init() should power on the UART
tty: serial: qcom-geni-serial: Add a poll_init() function

 drivers/tty/serial/qcom_geni_serial.c | 1 +
 drivers/tty/serial/serial_core.c      | 6 ++++++
 2 files changed, 7 insertions(+)
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog