From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C92C53F1653; Fri, 4 Sep 2026 13:27:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788528450; cv=none; b=m8wPTPyQ4QI2kDmfoWsxKwMnlN8/RJuDChsLs0ARVgfbtpSpvxwMpIltgNbtIzQNRsIGF1Yz16cPSvyGHXfX2bitGN/0+HTqs/xYvNdC+b/bEZuy/31JFyARiTxhal2s/2YVWG7Oi0AgFWpG8mCg5ScZEjY6X27tTRmttwIZlvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788528450; c=relaxed/simple; bh=GjlV7J0UW/cEHclbMrFd2SX68LkFj50OmybeJ/ookZU=; h=From:Date:Subject:MIME-Version:Message-Id:In-Reply-To:To:Cc: Content-Type:References; b=dpEN+ETsT6bVE1me46d2BU/fxyi3zP9GuX6Be+302J1oezedbB3nJwR3P/3HiliRBj58Xae4w7oIzCuUA5iQcmy0OPPljFWjxtqdvQtim4r4MSp8amRdfwwaGzjLxB7MvGKDbzSGyhFIIbYFoW0tcyoyHZv/IYH+ZaXgu+pp/zQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=T2rjYjKV; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="T2rjYjKV" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20260904132725euoutp023b927545ac8fd105a8924be21065423e~SISVFWUtu2507225072euoutp02X; Fri, 4 Sep 2026 13:27:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20260904132725euoutp023b927545ac8fd105a8924be21065423e~SISVFWUtu2507225072euoutp02X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1788528446; bh=Rsx3F22b54j7nOzV6Cd1dVpKZd9BXlB+FemZoo7yI+w=; h=From:Date:Subject:In-Reply-To:To:Cc:References:From; b=T2rjYjKVkEk/bfmbY7gL+C/9He20gZgv6RzvRP3iZzvwpIdNbw2gIIXyJX5ilRpnB fxc1WTOvvgpw3CmOagB99e3130j+nJztHdyIPM/8X4MgQclg3tgD7Sbl2xgWT73kXW lRSjHvNwbEIqOeAjL5dCQ3NLs3LySLmSJ9eEFMSQ= Received: from eusmtip1.samsung.com (unknown [203.254.199.221]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20260904132725eucas1p19c8f66b7844108641dec1d2c39989dd5~SISU4JP5_1857218572eucas1p1o; Fri, 4 Sep 2026 13:27:25 +0000 (GMT) Received: from AMDC4942.eu.corp.samsungelectronics.net (unknown [106.210.136.40]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20260904132723eusmtip1b6082a36d93cd1731475a3375390118b~SISTLouDv1747217472eusmtip1S; Fri, 4 Sep 2026 13:27:23 +0000 (GMT) From: Michal Wilczynski Date: Fri, 04 Sep 2026 15:27:10 +0200 Subject: [PATCH v3 09/19] drm/bridge: inno-hdmi: Add .disable platform operation Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-Id: <20260904-jh7110-clean-send-v3-9-484f9ae72715@samsung.com> In-Reply-To: <20260904-jh7110-clean-send-v3-0-484f9ae72715@samsung.com> To: Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Lee Jones , Andy Yan , Philipp Zabel , Emil Renner Berthing , Hal Feng , Michael Turquette , Stephen Boyd , Brian Masney , Heiko Stuebner , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Dominique Belhachemi , Brian Masney , Jerome Brunet Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, mfd@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, Andy Yan , Marek Szyprowski , Maud Spierings , Graham Markall , Icenowy Zheng , Michal Wilczynski X-Mailer: b4 0.15-dev X-CMS-MailID: 20260904132725eucas1p19c8f66b7844108641dec1d2c39989dd5 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20260904132725eucas1p19c8f66b7844108641dec1d2c39989dd5 X-EPHeader: CA X-CMS-RootMailID: 20260904132725eucas1p19c8f66b7844108641dec1d2c39989dd5 References: <20260904-jh7110-clean-send-v3-0-484f9ae72715@samsung.com> The Innosilicon HDMI driver supports platform-specific behavior through the `inno_hdmi_plat_ops`. While it provides an `.enable` hook for platform-specific power up sequences (like enabling PHYs), it lacks a corresponding hook for power down. This patch adds a new `.disable` op to the `inno_hdmi_plat_ops` struct and calls it at the beginning of `inno_hdmi_bridge_atomic_disable()`. This allows platform specific drivers, such as the StarFive JH7110, to implement their own power down sequence (e.g., calling phy_power_off() and clk_disable_unprepare()). Signed-off-by: Michal Wilczynski --- drivers/gpu/drm/bridge/inno-hdmi.c | 4 ++++ include/drm/bridge/inno_hdmi.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 8bd771761180473d221f59d5c0cd2a636e96ac4c..410a9eaa13541dfdacc5c96ba9a4d9dc021bc271 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -886,6 +886,10 @@ static void inno_hdmi_bridge_atomic_disable(struct drm_bridge *bridge, struct drm_atomic_commit *state) { struct inno_hdmi *hdmi = bridge_to_inno_hdmi(bridge); + const struct inno_hdmi_plat_ops *plat_ops = hdmi->plat_data->ops; + + if (plat_ops && plat_ops->disable) + plat_ops->disable(hdmi->dev); inno_hdmi_standby(hdmi); } diff --git a/include/drm/bridge/inno_hdmi.h b/include/drm/bridge/inno_hdmi.h index 81da9d9bcd79db8fe26c6dff4569371e484df608..5fca651c56b056d814124aa9c7e91aa7fd7ed1cd 100644 --- a/include/drm/bridge/inno_hdmi.h +++ b/include/drm/bridge/inno_hdmi.h @@ -16,6 +16,7 @@ struct platform_device; struct inno_hdmi_plat_ops { void (*enable)(struct device *pdev, struct drm_display_mode *mode); + void (*disable)(struct device *pdev); }; struct inno_hdmi_phy_config { -- 2.34.1