Message ID | 20250825162727.3185381-1-sjg@u-boot.org |
---|---|
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756139261; bh=TQUQt1vQ0IrFmd8rjC7PGSjqsq+joie+UUBLtn5UUYg=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=pBD6UiA1KBra6wD8tT2PWNH23pHsO1MxPdtHoeYW6F/mEk5/FCI5s9lSvEdrsAg4C MdB0mLsrvpMjhedYyAOLbDv8wHoiDsKDjZql+aWFFHwlr+vnHZQR1qu4mcc4RortVu n3QlmupsfhS2srYK+ckmwpc90rKeYnTrzW6GqTkDoEhxVptCaysxxLkxb0CveTsqYL 1NONaSzYH5J9dtbMab6M4F8IiUfPC/VF3OM+dXtl0hMg431bIwsVqtmQwb5qr+Khqp hV8ZMg/4Qoh0ZjjR+bmvzsPatlJT7pgRaLPpDaCfImkRHbhffsoW3qnhcwJhpKTWwG C9K9PO28Nvh6g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C027F6778F for <u-boot-concept@u-boot.org>; Mon, 25 Aug 2025 10:27:41 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id IVDrdTIu0_O0 for <u-boot-concept@u-boot.org>; Mon, 25 Aug 2025 10:27:41 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756139261; bh=TQUQt1vQ0IrFmd8rjC7PGSjqsq+joie+UUBLtn5UUYg=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=pBD6UiA1KBra6wD8tT2PWNH23pHsO1MxPdtHoeYW6F/mEk5/FCI5s9lSvEdrsAg4C MdB0mLsrvpMjhedYyAOLbDv8wHoiDsKDjZql+aWFFHwlr+vnHZQR1qu4mcc4RortVu n3QlmupsfhS2srYK+ckmwpc90rKeYnTrzW6GqTkDoEhxVptCaysxxLkxb0CveTsqYL 1NONaSzYH5J9dtbMab6M4F8IiUfPC/VF3OM+dXtl0hMg431bIwsVqtmQwb5qr+Khqp hV8ZMg/4Qoh0ZjjR+bmvzsPatlJT7pgRaLPpDaCfImkRHbhffsoW3qnhcwJhpKTWwG C9K9PO28Nvh6g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id AECA367744 for <u-boot-concept@u-boot.org>; Mon, 25 Aug 2025 10:27:41 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756139255; bh=IZ0IQ9fsr0wK9yQbN6yswEqgNrsCbNVTBX0MU4diKCI=; h=From:To:Cc:Subject:Date:From; b=aekAz7H3i4aJPGTnWdGhfJfnEdhYkwD1h5RtPwjYqbfFoP/laihmaO3NIZa29HgzM L4YDNd5sNqcNTvAtd8ass3JGlv0ceBlgwbmIPHUI7/3SZXfWii6crZurQYQyOebaet LbYsalM+JgUNQmLF1Nc1ICTyStgRsCZ+XL8/bs2Uuidf7yTwynz5nrqdtomI1lI9la L43bdvlppYALvHOu/gF8fJ6N77XB4UR3ReqlpYFtbYJZNUOw42Tz5dcWImWojDmG7B ZFySYyl5DpfE4vYU7iV38OxMvrxF6g8hTVw4ya5p0IxgafrCgOhN1C+ZO7HPxCfVd4 b0scdAji2tiew== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CFCEA67716; Mon, 25 Aug 2025 10:27:35 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id rx87mFk4ELqI; Mon, 25 Aug 2025 10:27:35 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756139254; bh=3Z4NQZgoSm4oXD8g+DsDC46VWI6CLxgSl08MLLXgsJA=; h=From:To:Cc:Subject:Date:From; b=Tq9U+5aUtuLfRxod3jf4FgWzw9dlbUyOyKKBI6JMPY5U0vr2yNF4gkDnGDdOAvHvV qVFq8FZNOMp5YrVGP7zHCFWdV0WDoH7YkqHejhJpMVHFPpgfoN8kY6yli8dUYRBHG9 i+Ny2KXLF1cA4LclHEoNFUqmWyavEsGDAUAvei/ZBADw2PSBqJ8++vPfGpfQSKbM/d YoqD5Vr+7Ifbh/b39dZtK91oaVhQPi0AFk3xFHLAk5wcZrmWIuFyQl8MgS48EjBaG+ v/wfElq4psKuA0xox68WXFhX+eWSAis8anAig6uE+iYitjwy3MkZlhGYpA5ahfptPW Br5thBcN/wqtw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 604215E45E; Mon, 25 Aug 2025 10:27:34 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 25 Aug 2025 10:27:03 -0600 Message-ID: <20250825162727.3185381-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: KZ5GU64P2LWALOUZXIVNMQX6REUNKOUK X-Message-ID-Hash: KZ5GU64P2LWALOUZXIVNMQX6REUNKOUK X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 00/16] console: Refactor in preparation for the pager List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/KZ5GU64P2LWALOUZXIVNMQX6REUNKOUK/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
console: Refactor in preparation for the pager
|
|
Message
Simon Glass
Aug. 25, 2025, 4:27 p.m. UTC
From: Simon Glass <sjg@chromium.org>
This series tidies up a few small things the serial and console areas:
- Move detection of serial-console size to the serial module
- Provide a Kconfig to disable serial detection
- Fix some missing driver-model flags in stdio devices
- Move console docs into the main documentation
This series is marked v2 since some of the patches were sent in any
earlier series. With various tweaks that series grew too large to be
sent as a single series.
Changes in v2:
- Add new patch to provide a way to tell if the video is visible
- Add new patch to move environment handling lower in the file
- Add new patch to refactor handling of the result in on_console()
Simon Glass (16):
bdinfo: Show the serial device
video: Mark the vidconsole as a driver model stdio device
video: Mark keyboards as driver model stdio devices
serial: Generalise the code to check the terminal size
serial: Cache the terminal size
sandbox: Add a function to detect terminal connection
sandbox: Provide a way to tell if the video is visible
post: Include config.h in the header
cli: Avoid sending ANSI characters to a non-terminal
console: Update coninfo to use sdev instead of dev
console: Update conio command to show uclass
console: Move environment handling lower in the file
console: Refactor handling of the result in on_console()
doc: Remove obsolete text in README.console
doc: Move console docs to rST
doc: Tidy up the console docs a little
arch/sandbox/cpu/os.c | 5 +
arch/sandbox/cpu/start.c | 4 +
arch/sandbox/cpu/state.c | 14 +++
arch/sandbox/include/asm/state.h | 15 +++
cmd/Kconfig | 8 ++
cmd/bdinfo.c | 3 +-
cmd/console.c | 45 ++++++---
common/cli.c | 3 +-
common/console.c | 130 ++++++++++++-------------
doc/README.console | 100 -------------------
doc/usage/console.rst | 62 ++++++++++++
doc/usage/index.rst | 1 +
drivers/input/keyboard-uclass.c | 2 +-
drivers/serial/Kconfig | 15 +++
drivers/serial/serial-uclass.c | 156 ++++++++++++++++++++++++++++++
drivers/video/vidconsole-uclass.c | 2 +-
include/os.h | 8 ++
include/post.h | 2 +
include/serial.h | 63 ++++++++++++
include/video.h | 21 ++++
lib/efi_loader/efi_console.c | 124 +-----------------------
test/cmd/bdinfo.c | 4 +-
22 files changed, 484 insertions(+), 303 deletions(-)
delete mode 100644 doc/README.console
create mode 100644 doc/usage/console.rst