Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 290D1606A31A for ; Wed, 2 Dec 2026 10:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=OTSLuNv2; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=Z8Rp1QPv Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D1D77409D3; Wed, 2 Dec 2026 10:27:51 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id gHcbScFgezmn; Wed, 2 Dec 2026 10:27:50 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 3ED5A409C1 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796207269; b=FZn9SyS0BwYCfgt+CdJGiOO/MqKAJY5pCQ/kMDxfP+FwqLcPKKVi83RQq/rQ1ZEZuMZX B1uvDo9JoQ5iORJH1AgKthpDNXJvsIeciMdMDe6Si9fAJHOojVO/BqXpnJvM3YxZeUTOS QVtrQuABqHQQk85SukP2uTCeG3He4AouVwjsz8Vtw2Opr6GxN4mSbi/P1PHjID5GFRILI OQA6pX+fHAxjT+35VoPwCevKjlg6SlV3V5LsKFg1ClLZDtYJAixITUi0pU7vMKTgApQZm Z7k186DpQR5uBxn1JGAHm/7CLu0b2w5xY0pSLewcPZsuwA+Wfsyt8IdPzNwgEimohOg== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796207269; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Errors-To; bh=YSD9g6FFXv0vRxyn/97d+a5eAOdcqaL2sKElpiqE8M8=; b=lvm9U8H/b1FSSmO43dgYfTUBmWsvZxlm4//WUuZVRdOJj1Jqhd3d8pCQr0moAdoDHGTT 2wmwnnYWjIhjwx8qT8o/lzPb2RDtgHTg8vyInPu1UmfQ14SHzfoe4wRDGg8rHAa+VxFuD V8WfjhJqLqkjAXJDeoI5b1rc1F4eTZOoa09XLSKMf9ezUoMY3JCgtYVh1JGtNjn6TOdIu 7MqI08EJiAyxAtTS2zwZBBQ30tHxfjSmgx8JxbQ9cEZRDHxKXNLWAML/I4PltBguJLFZJ vnHZygFcS1ttSchltdAFYJPNQNpYQWLevjFNjAnBy5asREKfTiulHw214VFlRy7vufw== ARC-Authentication-Results: i=1; smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796207269; bh=YSD9g6FFXv0vRxyn/97d+a5eAOdcqaL2sKElpiqE8M8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=OTSLuNv2JFBlRvjunSbFoXc6aCXLrHpFyGMvkwgoizvL6CfyLGOkzrA4cFfGeJOqS eZsTaPch8EChXZSyubuxpk+47GfIA1hAdQ3padlcH3B+DnAi4PO932aiuVKdcKW4Lv 6mUf8ZfAtlPs7xhcZQOkMIfgiS0+7Rhl19Es+nz2RomRIVFFfgLNdBWVjEvrTsxQ3Z GaVbC41M7E1YT5tJLwUQBergpiIoEJhpqXZGUx/21BAKmVFyanixwH3PNtcIuBhjLC 9TCDrytTL34slBvUsJp/fzBuO7ubhuoZ4fJQ0t5WaHRP1xMOv/Xasj9PMZRL/U2695 OEO+5vCiAMc6g== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 3ED5A409C1; Wed, 2 Dec 2026 10:27:49 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id B6684765 for ; Wed, 2 Dec 2026 10:27:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A67026080B for ; Wed, 2 Dec 2026 10:27:44 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id tG43kXFgXxWX for ; Wed, 2 Dec 2026 10:27:44 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 880F7607EA Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::329" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::329; helo=mail-wm1-x329.google.com; envelope-from=dario.binacchi@amarulasolutions.com; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=Z8Rp1QPv Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by smtp3.osuosl.org (Postfix) with ESMTPS id 880F7607EA for ; Wed, 2 Dec 2026 10:27:43 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4bbd2c5931bso12065935e9.2 for ; Wed, 02 Dec 2026 02:27:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1796207261; x=1796812061; darn=lists.u-boot-project.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YSD9g6FFXv0vRxyn/97d+a5eAOdcqaL2sKElpiqE8M8=; b=Z8Rp1QPvS85nGOYlDD6+XUQEYB2dlgk4lqyN4FZ+QECPS7cPBN4xELeH+7BKy0sX3M KeeBjK5qRKHpBLj4Zu1gQMuxdwRXNXam0v/2BuBKMKZBkHJ3Yhet0xpqPDYAoVvHZGzt EfKlzVyFS1/gmvFNFiu8MPQRbNoKCVHW1J7As= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796207261; x=1796812061; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=YSD9g6FFXv0vRxyn/97d+a5eAOdcqaL2sKElpiqE8M8=; b=ym6DYw4CZB23K8Iul+jTlMDXYxOpTXFPeBOq4YxmKyfy/xwtnTbvxPvue/Pex72Kud nEws+U2Dow82bDReXs+MX0z3djKiQGD6nn1p1Dk9prWcwHUwWbrOdwgyfz4Wbq/RQrn+ apICu6KAFsLBcZsJw37XHBXJxwlskK8FvH/A8tYSi6xr/Fqur/Oiu+0OC8XqZPAAqarX owjtk4dVZde9dDMjbhz3OryikjPwapKR2G2yxIneC0y656IIFDXCdaFdf6rawcYaVvQR 1qlCn2+4UBusYmHCwUft3iBG2v/iVDlZkwK5ePwZYaUrZ126PgDoqeW9UE8t45Rc/zGq K8qw== X-Gm-Message-State: APuU4Z9rzi2Y6qAjIyxgcf5nDMZ8oVvDYr9ktmP4/J5naMxgfAKLizN9 ygW+B+SISaX0bmY5mdnLeoN49oxwl+72BKDDA/PArUuyt24t1PnayjvK/9s7OEmPfPMmrXULlRF BSTu3 X-Gm-Gg: AZFdTZcN43LKRRIIVYAGjDnwg2fbgS9cO6NCWjcDF8X23lXP84arAmMGO886l3v2FiZ FouWiDDGc1uAuJHCOYCmQZF3ndc4to7wt1J8J0j5QfaWp4bWvkaozMvDSMgoFbEI1P3/NEcIUQ1 p+5Ll4q2gJLlylYjAqFu/Ay3uzz4Ypxz6uLSPp63tlsAsRA3pb0fRf4IIhYDM0e5zDz/b68QBIG L9jht2Xn/D3wpZIv3VfFBuZDjp+RJlHO1GYVOJwl131qhbILelZmNuQeMDILpnxPNIY+Nhwvh2A vQKzQNnhE+wFydB/wrKOtC0UE7nIhORCK6pYyKdec7u+sAKfQDM4q4C0ZrgnLBcXfisyk6NLFbm i06jNH/YM1wpA+EdKvKze/9P5eidq4JG/kdW8T00N8sqB5fp0WiRrGagXqUeiPLQNKQMsyMMol7 SPn4c2QZvQTZEI8EV69Uxfle1BhH8cZwBsM8POtbbhS3AeW/R+8rb/H3iemQYZ3/knh9F4w4kDz zu/9wn4uEXTBv0X1WMTSOajZOLjrg9lCDXprQSYZE0x4q9eh00F75jflHVRz5R6QFLLtO3ywBy1 lRbAavuFX2JHMijWqabCX3i7+5KXcbvOvNk/kjKG2cYlJ5xlLgQ5G1dGKk3QvRGGkYZjIJLpq7j 835BJixx4BIHswLKO/pRt X-Received: by 2002:a05:600c:1d0a:b0:4a2:59:f568 with SMTP id 5b1f17b1804b1-4bb8880ef6amr839584885e9.14.1796207261339; Wed, 02 Dec 2026 02:27:41 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:6962:3ebc:7df:e6bf]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbbaeb1e4csm366823865e9.13.2026.12.02.02.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 02:27:40 -0800 (PST) From: Dario Binacchi To: u-boot@lists.u-boot-project.org Cc: Heiko Schocher , linux-amarula@amarulasolutions.com, Peng Fan , simon.holesch@bshg.com, Marek Vasut , Valeriy.Yatsenko@bshg.com, Leonhard Hesse , michael@amarulasolutions.com, Miquel Raynal , Ye Li , Dario Binacchi , Anatolij Gustschin , Tom Rini Subject: [PATCH v3 10/26] video: dsi_host: add disable host interface Date: Wed, 2 Dec 2026 11:26:21 +0100 Message-ID: <20261202102716.572884-11-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261202102716.572884-1-dario.binacchi@amarulasolutions.com> References: <20261202102716.572884-1-dario.binacchi@amarulasolutions.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Michael Trimarchi Current operations structure has provided disable callback, but there is no API from dsi_host uclass to use it. Add this disable host interface, so that dsi bridge can call it to disable host Signed-off-by: Ye Li Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/video/dsi-host-uclass.c | 10 ++++++++++ include/dsi_host.h | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/drivers/video/dsi-host-uclass.c b/drivers/video/dsi-host-uclass.c index fde275ad7e2e..745991f8dd94 100644 --- a/drivers/video/dsi-host-uclass.c +++ b/drivers/video/dsi-host-uclass.c @@ -34,6 +34,16 @@ int dsi_host_enable(struct udevice *dev) return ops->enable(dev); } +int dsi_host_disable(struct udevice *dev) +{ + struct dsi_host_ops *ops = dsi_host_get_ops(dev); + + if (!ops->disable) + return -ENOSYS; + + return ops->disable(dev); +} + UCLASS_DRIVER(dsi_host) = { .id = UCLASS_DSI_HOST, .name = "dsi_host", diff --git a/include/dsi_host.h b/include/dsi_host.h index 83f8839db68d..5873ab698d9e 100644 --- a/include/dsi_host.h +++ b/include/dsi_host.h @@ -70,4 +70,12 @@ int dsi_host_init(struct udevice *dev, */ int dsi_host_enable(struct udevice *dev); +/** + * dsi_host_disable + * + * @dev: dsi host device + * @return 0 if OK, -ve on error + */ +int dsi_host_disable(struct udevice *dev); + #endif -- 2.43.0