From patchwork Mon Oct 6 20:58:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 531 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=1759784400; bh=fmpsHt0q/CuMaZhFGYFoNKMsTsLj1vRsIpamb+4Q7o0=; 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=XCVjaxDbcn8oGT92jVJIO6c8Iyew5iOXqSs1lauIzrOR0Vvo9IiHWFZPPBV1o6DKj 4HTnGLeaHKSLJGKXdiX9knJzRjwhNe5VLUxg/9m+5K8q1su0oPBYb3RFV9nzCUNFx/ CR02jyh06dh6eHilGqmntXHJ05/yosx3SGQxFESSkUrEPNHaWXUeoCYfwXFthbwF+1 UlM7KzCalsTfORq6StlLlwn3C11XpjS6p69aK6RSFpNsfCDIi//RMBcO6QIvIHM9/H gHZwUuFutW0+WGjmCX9mz+axQeI3OZ4UrrhJB+WTLAoyzBtbAsZSxnhnR1rbGupkWe 6jlUMOdPvOQcQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BA00C67F1D for ; Mon, 6 Oct 2025 15:00:00 -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 JowDMqWXpoiR for ; Mon, 6 Oct 2025 15:00:00 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759784399; bh=fmpsHt0q/CuMaZhFGYFoNKMsTsLj1vRsIpamb+4Q7o0=; 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=YdCoTRvhKY3STZjZMB0MpfspUnMdvLfz/VIWTbzygWHqJMuk53syH4LfTG8cIfxVE ROkcOHZ0zlhFKF5blN3P/XFS6No0D61YzzcNQHwNfxnRZsn33MYRXU+4DpcPBnv6Zi NBMHzILHtNpKIAQ7kVQYJ1XS31Ain41Wcm33bU357X7uDQNZB6SbKX8rasvBwgvoBr w2YdquZguhq3yQw3oKXSsP7O2rUMXWd16oUamOWskIFeW9tgF4WsDTFNkKXjDLd9zl bpQeeOiETaXDWY1960dpdcGtN9IWgDgZjBAhI+tuStsd2slS6aSo1BXdCoXV21ZHnM I9tLVt7ll/3zA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 04ED967EE4 for ; Mon, 6 Oct 2025 14:59:59 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759784397; bh=7ts93HU1DNQEv0C1sV4FRSPzrqA+gVtpIaQp8Kj9vsw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mGUky5ZH2AE+6FLvSjH0e2sbHfnejhZyzrjb5xIGUm/xwFkUvlq09P7dJycQTmU1G CdV/QNf8W7GAx/wLB2gMw+thTWGziljdNnzUodVZCudtWP+We7brY6xtg9AmYylpVr S4HfE9goDlUUBcPtzEwXweOu4WajQTwSsnM3QVZKqwMXtK9/ZCvy5ptv3O3+uPmSjb xrGVKmg/zm1dAfKZ37YqmdPt73pUgmD3XW+A1WE872j2AehWAmuVuYcJdyQZWCzpL+ +GRQ+Cx0lcGpr7yyq5PN88r63vLOtyuQ4TCRFh4ab6K6EY9E/UCwlVyF4Q3OerOvL2 YaZDOB2oQgoVA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7005267F03; Mon, 6 Oct 2025 14:59:57 -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 gx5xAliCTIml; Mon, 6 Oct 2025 14:59:57 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759784396; bh=WHq78/PihsmoCmX8VLTQTqKJYlr6H1baOHAIhnh8dX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dd8xopA+t1efDoiIspJ2h63f6lZOwBIXaLes+rzptrnfSPs68u+wgtc28YllljF8b IsaUcDR3Vw49Gnh9ALJYTEn4QMa7dzmHZlmTp5Jg3vqoXLqcxtT6ZvOOabWypdbp6D dZDolOI8O3zAtZArh/LHBY9Eb6U/No1gP/0cZ0Y0+Gh8Id/3YqifEct93JlDD1Qgiz t0RseLBaLDs2lZUSS+L4JYKOja8RaVfCHhNzsZeSnUrtTAQ137IUr9h/IDGseLTsL0 nWFsUjW+K+7UKluWg0BvJRxUpGnRQaKIB1CX/fx2WNMAx0+yDkHuHhzcPjEmHYWX0n HW0fP5GsKo5kw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id BA0AB67EE4; Mon, 6 Oct 2025 14:59:55 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 6 Oct 2025 14:58:48 -0600 Message-ID: <20251006205856.2009292-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251006205856.2009292-1-sjg@u-boot.org> References: <20251006205856.2009292-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: DN3QLXL2YP45JEEAXJBESGLUI7U4BO27 X-Message-ID-Hash: DN3QLXL2YP45JEEAXJBESGLUI7U4BO27 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 , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/14] expo: Use manual-sync mode 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 Make use of the manual-sync mode provided by the video subsystem. This removes uncertainty about whether the display will actually be updated. Signed-off-by: Simon Glass --- boot/expo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boot/expo.c b/boot/expo.c index 4f2c6d928a3..ebe31059e87 100644 --- a/boot/expo.c +++ b/boot/expo.c @@ -352,7 +352,7 @@ static int expo_render_(struct expo *exp, bool dirty_only) if (ret) return log_msg_ret("tst", ret); - video_sync(dev, true); + video_manual_sync(dev, VIDSYNC_COPY | VIDSYNC_FLUSH); expo_test_sync(exp); return scn ? 0 : -ECHILD; @@ -569,7 +569,7 @@ void expo_req_size(struct expo *exp, int width, int height) void expo_enter_mode(struct expo *exp) { - video_manual_sync(exp->display, true); + video_set_manual_sync(true); if (IS_ENABLED(CONFIG_MOUSE) && exp->mouse_enabled) mouse_set_ptr_visible(exp->mouse, false); @@ -578,7 +578,7 @@ void expo_enter_mode(struct expo *exp) void expo_exit_mode(struct expo *exp) { - video_manual_sync(exp->display, false); + video_set_manual_sync(false); if (IS_ENABLED(CONFIG_MOUSE) && exp->mouse_enabled) mouse_set_ptr_visible(exp->mouse, true); }