All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] xen/ns16550: preserve UART operation across firmware handover
@ 2026-10-20  3:45 Zhang Zheng
  2026-10-20  3:45 ` [PATCH v3 1/2] xen/ns16550: identify XScale UARTs from device tree Zhang Zheng
  2026-10-20  3:45 ` [PATCH v3 2/2] xen/ns16550: drain TX before reinitializing the UART Zhang Zheng
  0 siblings, 2 replies; 6+ messages in thread
From: Zhang Zheng @ 2026-10-20  3:45 UTC (permalink / raw)
  To: xen-devel
  Cc: Alistair Francis, Connor Davis, Oleksii Kurochko, Baptiste Le Duc,
	Andrew Cooper, Anthony PERARD, Michal Orzel, Jan Beulich,
	Julien Grall, Roger Pau Monné, Stefano Stabellini

This series identifies XScale-compatible UARTs from device tree and
keeps UUE set when updating IER. Pending output is drained before the
FIFOs are reset during ns16550 initialization.

Changes in v3:
- Identify XScale UARTs through intel,xscale-uart instead of probing IER.
- Preserve UUE on IER writes and enable RTOIE with receive interrupts.
- Bound the TX drain wait using the XHCI console's raw-counter approach.
- Explain why the drain checks TEMT instead of uart->lsr_mask.

Tested on SpacemiT K3 with Baptiste's preceding A/D bit patches applied.

v2: https://lore.kernel.org/xen-devel/20261010031406.2057735-1-zhangzheng@iscas.ac.cn/
v1: https://lore.kernel.org/xen-devel/20260928023857.1030884-1-zhangzheng@iscas.ac.cn/

Zhang Zheng (2):
  xen/ns16550: identify XScale UARTs from device tree
  xen/ns16550: drain TX before reinitializing the UART

 xen/drivers/char/ns16550.c  | 44 ++++++++++++++++++++++++++++++-------
 xen/include/xen/8250-uart.h |  2 ++
 2 files changed, 38 insertions(+), 8 deletions(-)


base-commit: 7e020a4dd6ed30eb6c91a9abe2767034e2bb270a
-- 
2.54.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-28 10:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-20  3:45 [PATCH v3 0/2] xen/ns16550: preserve UART operation across firmware handover Zhang Zheng
2026-10-20  3:45 ` [PATCH v3 1/2] xen/ns16550: identify XScale UARTs from device tree Zhang Zheng
2026-10-26 15:57   ` Oleksii Kurochko
2026-10-28 10:46   ` Jan Beulich
2026-10-20  3:45 ` [PATCH v3 2/2] xen/ns16550: drain TX before reinitializing the UART Zhang Zheng
2026-10-26 16:46   ` Oleksii Kurochko

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.