From: Sumit Garg <sumit.garg@kernel.org>
To: Stephan Gerhold <stephan.gerhold@linaro.org>
Cc: Casey Connolly <casey.connolly@linaro.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Tom Rini <trini@konsulko.com>, Sam Day <me@samcday.com>,
u-boot-qcom@groups.io, u-boot@lists.denx.de
Subject: Re: [PATCH v2 0/6] Fix UART autoboot issues on DragonBoard 410c
Date: Tue, 9 Sep 2025 09:53:04 +0530 [thread overview]
Message-ID: <aL-rqObot0iTQiHC@sumit-X1> (raw)
In-Reply-To: <20250908-db410c-autoboot-fixes-v2-0-316ed98e0143@linaro.org>
On Mon, Sep 08, 2025 at 01:31:20PM +0200, Stephan Gerhold wrote:
> There have been issues with autoboot on DB410c for years, where autoboot
> gets interrupted by spurious input on the UART console. I've tried fixing
> this back in 2021, but it turned out this fix was not enough. Looking into
> it further, there are two separate issues to fix:
>
> - Spurious input with UART disconnected: The RX pin is floating in this
> case, resulting in garbage or a UART break event (0x00 byte). This is
> interpreted as input in the autoboot prompt. Fix this by adding
> bias-pull-up for the RX pin. I've made this change upstream in Linux
> 6.16 for all MSM8916/MSM8939 devices and it has already landed in U-Boot
> through the recent subtree update of dts/upstream.
>
> - Spurious input when querying console size with UART connected: It's
> unclear why this happens, but it seems to be some issue in the overly
> complex implementation of 4-character packing mode in the serial_msm
> driver. Fix this by switching the driver to use the more simple
> single-character mode, which doesn't have this issue.
>
> With these patches, autoboot is finally working reliably on DragonBoard
> 410c (and hopefully will remain so for the future :-)).
>
> Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
> ---
> Changes in v2:
> - Rebase on top of U-Boot master and fix conflicts
> - Drop backported upstream DT changes (already landed through recent
> subtree merge of DT changes in Linux 6.16)
> - Link to v1: https://lore.kernel.org/r/20250624-db410c-autoboot-fixes-v1-0-d96c97ae41d1@linaro.org
Nice fixes and cleanup, FWIW:
Acked-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
-Sumit
>
> ---
> Stephan Gerhold (6):
> board: dragonboard410c: Drop now unneeded bootph-all for console
> Revert "serial: serial_msm: Delay initialization to let pins stabilize"
> serial: msm: Cleanup register naming
> serial: msm: Reset after writing to DMEN
> serial: msm: Re-enable after resetting
> serial: msm: Use single character mode
>
> arch/arm/dts/apq8016-sbc-u-boot.dtsi | 9 ---
> drivers/serial/serial_msm.c | 127 ++++++++---------------------------
> 2 files changed, 29 insertions(+), 107 deletions(-)
> ---
> base-commit: 328747974a0620d0996113fe2b3906b06e96de00
> change-id: 20250419-db410c-autoboot-fixes-ad7f4f5973a8
>
> Best regards,
> --
> Stephan Gerhold <stephan.gerhold@linaro.org>
>
next prev parent reply other threads:[~2025-09-09 4:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-08 11:31 [PATCH v2 0/6] Fix UART autoboot issues on DragonBoard 410c Stephan Gerhold
2025-09-08 11:31 ` [PATCH v2 1/6] board: dragonboard410c: Drop now unneeded bootph-all for console Stephan Gerhold
2025-09-08 11:31 ` [PATCH v2 2/6] Revert "serial: serial_msm: Delay initialization to let pins stabilize" Stephan Gerhold
2025-09-08 11:31 ` [PATCH v2 3/6] serial: msm: Cleanup register naming Stephan Gerhold
2025-09-08 11:31 ` [PATCH v2 4/6] serial: msm: Reset after writing to DMEN Stephan Gerhold
2025-09-08 11:31 ` [PATCH v2 5/6] serial: msm: Re-enable after resetting Stephan Gerhold
2025-09-08 11:31 ` [PATCH v2 6/6] serial: msm: Use single character mode Stephan Gerhold
2025-09-09 4:23 ` Sumit Garg [this message]
2025-09-11 14:24 ` [PATCH v2 0/6] Fix UART autoboot issues on DragonBoard 410c Alexey Minnekhanov
2025-10-30 12:16 ` Casey Connolly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aL-rqObot0iTQiHC@sumit-X1 \
--to=sumit.garg@kernel.org \
--cc=casey.connolly@linaro.org \
--cc=me@samcday.com \
--cc=neil.armstrong@linaro.org \
--cc=stephan.gerhold@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.