Skip to content

serial: Support a disabled serial port

Simon Glass u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 4 repliesIn review

Changes in v3 from the cover letter

- Put the feature behind a Kconfig
- Move the feature to the serial uclass, so any serial driver can use it

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3serial: Allow a serial port to be silent disableddrivers/serial/Kconfig drivers/serial/serial-uclass.c include/serial.h+52 -10 replies
2/3serial: ns16550: Avoid probing hardware when disableddrivers/serial/ns16550.c+2 -10 replies
3/3x86: coreboot: Make use of disabled consolearch/x86/cpu/coreboot/Kconfig drivers/serial/serial_coreboot.c+3 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/3] serial: Support a disabled serial port

This series provides a way to tell a serial UART that it can't actually work, at runtime. The main motivation is to deal with a coreboot feature where it does not provide UART details in the sysinfo structure unless the UART is also enabled in coreboot.

Attempts to introduce a way to enable a silent UART in coreboot have lead to a large amount of discussion but no result, sadly.

This series reworks a patch sent last year, which was not quite ready to be applied. A coreboot user (on irc) hit this problem, so it needs to be resolved.

Changes in v3:
- Put the feature behind a Kconfig
- Move the feature to the serial uclass, so any serial driver can use it

Changes in v2:
- Drop RFC tag since there were no comments

Simon Glass (3):
serial: Allow a serial port to be silent disabled
serial: ns16550: Avoid probing hardware when disabled
x86: coreboot: Make use of disabled console

 arch/x86/cpu/coreboot/Kconfig    |  1 +
 drivers/serial/Kconfig           |  9 +++++++++
 drivers/serial/ns16550.c         |  3 ++-
 drivers/serial/serial-uclass.c   | 19 ++++++++++++++++++-
 drivers/serial/serial_coreboot.c |  2 ++
 include/serial.h                 | 25 +++++++++++++++++++++++++
 6 files changed, 57 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1