From patchwork Thu Jan 22 04:11:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1760 Return-Path: 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=1769055134; bh=lX8iTN0dOK0FBdYqe2xn4LLDtddFJPyROxFQRrZFQCE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ceby6hC4+Orovj9sluv4K7vnAO1tsUyKYl9ep0CZvMsmHuSwnVjVT1eucp4B4+tQD khJTD5hpkJBtKAIZcovW8vPyxEOEjL44JDQ7Wj+ll/WeCQ+YUtEY/rNiF1T5qC3P8y tzOKCtE6OCXdjtqDNfq9qq6VlhY/vg3RzrXtwF1XkRZvhZcSU2rpxSdUrJNdLPgOHW lCKymsIsNBYY+YB06SqVq/Dw/KPpolu4ZXTA0LDMnREXg+giqbiGlk0hjjNbntOs8V T/sB66qYkZYyg4Lv7Ivxa202tBvuS/tfwc/KvIpmeyGHdJZ9pGjYnCgaq4HoX5A8W9 2J/zQ4yVH6ATA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9E1246962D for ; Wed, 21 Jan 2026 21:12:14 -0700 (MST) 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 7YZiw9Ve5FbY for ; Wed, 21 Jan 2026 21:12:14 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769055132; bh=lX8iTN0dOK0FBdYqe2xn4LLDtddFJPyROxFQRrZFQCE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=bJ0O67oJUqJcavh4gj2j+CENSidwO4Vcn9Xj4bvA0Qml6b/S7N9UeH5oiq3Os+4rM 3PApFGOzUVcDYJSYfF6rvhAGYgt1O1vwLGXqcovr1HZR4dHcnixzg/U6POFk6IuEhy lGOoasTanu0URk0f6+tv6hl7/Dk1L417tSr7fNUWJoumOylXTe4ZQb298uonEmT/7j JWM3ZZL5On6hZUNkLqe5e9TdkbiNeZaQNtFLeWOSHhWDjWzuJipygXh7E8BN7jdyme fMUEB6swLE9am6WcdGEMiX+0HNa84aBhLOQc/jnXYMYBUySdKsA/JYjkJIpCClLMuU Ly5cH+FpOUr3Q== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9E5E369636 for ; Wed, 21 Jan 2026 21:12:12 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769055131; bh=xl/IL5KhbjpZu6YtzcMKP8P+qeK/g+EyBIMmitqoesw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XX3D8huKoG7tJjWnyVV2OubSemGw6WVhzn1zC3i6HGvO/B0rNCTv6dgPYwpn6dCNO wJRjikVht4jQUFcZhsg8kPM144mNF4aML8hSv836SgSIcQuQ8GFxGRmiaedal8S+YV DpMrScMnLBkbtRhuoutm+n5xsEaWzd1Eg4YLSYjAeUTO38UkZAmvQdy1gK7QebpYeh D7a15hUergFlrDNNTcXe1W1SdWpvxWhaalUNekWEXKSZ2gNjCaknzdVwtuH6uiWIf2 B8p0F63YI7LNvJ8tROAiN7gbtmJOn2PIWsK0Qgy5rxmXqCfSloAs4R5Q7gmYralF4W SbYt3CKk8Sz4g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DF578694CC; Wed, 21 Jan 2026 21:12:11 -0700 (MST) 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 tAXnqOVM-PbW; Wed, 21 Jan 2026 21:12:11 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769055131; bh=JZAesGw1oF2lfaSKxoDvjpbFhq1AodSu46a7mJBzdTs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u15ePjg0ct5P0a3E5a7ZSLVGEwmmwLn9E/w02TphWjyjlgZmfWlJE0c074EnSCoB2 /VT1odW5cOh2nP7AWkV9GW40Nb7AI66cVYnY5VoyIbJvss9qzx5Heim5ddyJ5dLywk ONmzgfO1GBkSuPtjSqr3kc5f389KHsagHuJW5toj9AkHrhVGxhqSyFCj8p/MKY1bzo 426pfDlz9WbDOGRMWyo8Icktt0ThyNwH8k8LQQu4eQJhMF3ucxe8BbmCF59z5WKL8t k8IKrcXE732wEmbcsHCw7yS23u0Hu8cwoH5hDd9RiWwMWNTjKiV+TnTOUt/3l9eKni RdxJ1HRP3GyRA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 4BF8669486; Wed, 21 Jan 2026 21:12:11 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 21 Jan 2026 21:11:29 -0700 Message-ID: <20260122041155.174721-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260122041155.174721-1-sjg@u-boot.org> References: <20260122041155.174721-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 47C2B6J3DOE4ZXVG6PVJJLWIQYEROREI X-Message-ID-Hash: 47C2B6J3DOE4ZXVG6PVJJLWIQYEROREI 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: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 01/16] video: Update vidconsole_idle() to process all contexts List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Update vidconsole_idle() to handle cursor display for all contexts, not just the default one. This ensures that cursors in client-allocated contexts (such as expo text-input objects) are properly shown during idle time. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- drivers/video/vidconsole-uclass.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index b6bd3133037..513c8f3bacb 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -1064,9 +1064,8 @@ void vidconsole_set_bitmap_font(struct udevice *dev, struct vidconsole_ctx *ctx, ctx->xstart_frac = 0; } -void vidconsole_idle(struct udevice *dev) +static void vidconsole_idle_ctx(struct udevice *dev, struct vidconsole_ctx *ctx) { - struct vidconsole_ctx *ctx = vidconsole_ctx(dev); struct vidconsole_cursor *curs = &ctx->curs; /* Only handle cursor if it's enabled */ @@ -1080,6 +1079,15 @@ void vidconsole_idle(struct udevice *dev) } } +void vidconsole_idle(struct udevice *dev) +{ + struct vidconsole_priv *priv = dev_get_uclass_priv(dev); + struct vidconsole_ctx **ctxp; + + alist_for_each(ctxp, &priv->ctx_list) + vidconsole_idle_ctx(dev, *ctxp); +} + #ifdef CONFIG_CURSOR void vidconsole_readline_start(struct udevice *dev, void *vctx, bool indent) {