From patchwork Fri Sep 10 13:09:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12485115 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29E95C433F5 for ; Fri, 10 Sep 2021 13:09:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A543E6103D for ; Fri, 10 Sep 2021 13:09:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A543E6103D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 190E46E9F2; Fri, 10 Sep 2021 13:09:52 +0000 (UTC) Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by gabe.freedesktop.org (Postfix) with ESMTPS id 62A406E9F2 for ; Fri, 10 Sep 2021 13:09:51 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 0F1042B012A6; Fri, 10 Sep 2021 09:09:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 10 Sep 2021 09:09:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm3; bh=Q9z3lLEAaevDUD49j6RHOkYod/ ot7jQUn3ZBL3TnwVg=; b=ULkDc5ydZ0lzCerUrWcfR4AsM6ZC1zEKmQs/Cmq/Yf 7QE/q4bDWap99ZjPxMSbCmcChg9AXBfF0i7rKa6LHQpqb5lr6ziPlAOzIEwc4Tat pRPDZG4EUCjdWEjGHspYRLbGE9a+jdxH5EtnZPxAOYrrRpPDlijOBEesdyoSPqe3 C44aDhsmpTRjT4ORZ/heldngD++d0/PSZcMAdi26L4m99njTlbp3Xfu7kme5vS0z IJ7OumUcDiGYrViYGdoGbPUm66rMfer6ZEFHQComptlqNOhwHBaP9Oh3UVBMEEfm YLCT9MipuTgoodb8rgos5kcQRRATsgKpqZJ3pZlivQDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Q9z3lL EAaevDUD49j6RHOkYod/ot7jQUn3ZBL3TnwVg=; b=poTjO7yzoGlZJfn7uixG7A wqIi5QyVNexwTteJYYTMx6A+6IqdFpBfuJbmn3BYZTJ42Odsudr9of4eplg339E3 /CQK3JzyMidtVkRcXAydOsDoigvU+WzYVIofs67Jf6Hrvx+WC4UkE7FEsjYs6fQv k7RBU0RWbfx8MBNmsgsKXyeKyEW4kBFaQ4wyCJQZ5kPinGpHnpik8fRC7/0YukGh 8UFpdvj09IVEfqC5UsZVnOBCX3WVAnUVzSC8O9wAygPeXOtbfYYGwZEZ6MAhWSEv NoXCNL78jWunKAf613B3nCIa4h+OsR0iGGsANDCT5205yrWkiY2d4EhOqiDQlnQw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeguddgiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Sep 2021 09:09:43 -0400 (EDT) From: Maxime Ripard To: Robert Foss , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Laurent Pinchart , Jernej Skrabec , Andrzej Hajda , Neil Armstrong , Jonas Karlman Cc: dri-devel@lists.freedesktop.org Subject: [PATCH 0/3] drm/bridge: Create a function to abstract panels away Date: Fri, 10 Sep 2021 15:09:38 +0200 Message-Id: <20210910130941.1740182-1-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, This series used to be part of the DSI probe order series, but got removed since it wasn't useful there anymore. However, I still believe there is value in moving towards merging bridges and panels by only making encoder (or upstream bridges) manipulate bridges. The first patch creates a new helper that does just this by looking for a bridge and a panel, and if a panel is found create a panel_bridge to return that bridge instead. The next two patches convert the vc4 encoders to use it. If it's accepted, I plan on converting all the relevant users over time. Let me know what you think, Maxime Maxime Ripard (3): drm/bridge: Add a function to abstract away panels drm/vc4: dpi: Switch to devm_drm_of_get_bridge drm/vc4: dsi: Switch to devm_drm_of_get_bridge drivers/gpu/drm/drm_bridge.c | 42 +++++++++++++++++++++++++++++++---- drivers/gpu/drm/drm_of.c | 3 +++ drivers/gpu/drm/vc4/vc4_dpi.c | 15 ++++--------- drivers/gpu/drm/vc4/vc4_drv.c | 2 ++ drivers/gpu/drm/vc4/vc4_dsi.c | 28 ++++------------------- include/drm/drm_bridge.h | 2 ++ 6 files changed, 53 insertions(+), 39 deletions(-)