Skip to content

msm_geni: Suppress UART TX when debug cable is disconnected - #130

Open
aswinm94 wants to merge 2 commits into
qualcomm-linux:qcom-nextfrom
aswinm94:serial_disable
Open

msm_geni: Suppress UART TX when debug cable is disconnected#130
aswinm94 wants to merge 2 commits into
qualcomm-linux:qcom-nextfrom
aswinm94:serial_disable

Conversation

@aswinm94

Copy link
Copy Markdown

This PR adds support for detecting a disconnected debug UART cable
on Qualcomm platforms and suppressing serial transmission when no cable
is present.

upstream-link: https://lore.kernel.org/u-boot/20260827073436.4113558-1-aswin.murugan@oss.qualcomm.com/

Add MSM_GENI_SERIAL_CABLE_DETECT Kconfig option and detect a
persistent RX-line BREAK condition (no S_GP_IRQ_3 after
S_GP_IRQ_2) to identify a disconnected debug UART cable, and
suppress TX output in that case to avoid driving an
unterminated line.

Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
Enable CONFIG_MSM_GENI_SERIAL_CABLE_DETECT in qcom_defconfig
by default.

Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant