From patchwork Mon Mar 11 11:20:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13588657 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9516AC54E58 for ; Mon, 11 Mar 2024 11:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sTkWr/duSer5ZRqfouNShqUNYsGoki4FipjwH1CdUPQ=; b=zQj+aQd/0irACo t1BVBPQzZugB22mAAaxXcGVB1fjc3dyC3sEg6NRfHZ63+jsSHlcmd2t84dG9TNdZ7xJc1u88CkSqS JTtCDGPN4rQwKM/bqqXcZQTdl1saITLw63YYy20rKlY4MJoZ5iklCbbsCsrvBFKmKYZnNKCcptdxe KS3xTYe/Mvoc6woAegTAnr1jktncfJsDKD025h9aY8ExPdCWw8xy1MNrWgvSskm3Z0Z5V3A4ITjHu xs62K6SjpY1ZhKPn5GEG0qU99y4XAcxL5kSaMqq/sOmpZK5A1xxeF/URoqlRCbC6nmhn/khwUThUi 3RDzIkrHAnj/GpJXtyGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdje-00000001GhE-1exM; Mon, 11 Mar 2024 11:22:26 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdi7-00000001FiU-0BCF for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2024 11:20:54 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2d2991e8c12so40234191fa.0 for ; Mon, 11 Mar 2024 04:20:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710156048; x=1710760848; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ir6wjm8QQpOyHKpQvjmYeKZYvCMVaJ8Hym4a6JbZZhY=; b=BkXFzowGk+ae1aJYJrMqP6TjjGJXjcscu5IWQNFDBE6qP55ShCJDQVkRY9yxt89UtU QyW7GZvtRqNerJ+y6HVFsPcOG4tcU4UhnxFQt29ahcKTHXqfpd41rX+OxKESjGt64eZJ 4TpSJBZO4hm7i8XfZ0paqpCmFm9/QOouWrcTbq69EJ/7JiH6/LKeCOC5fOzHkOlqnBci zCZY1dtUyblBSBrml7XFfLcymZNhc+0r1O6y4alpwQcWGH6W+kKL1cmwpzPSnxxVqZj5 STc5QTwYYnW81eRUg8VWvBXII2ZYF+CP+P8GBsPo4rLGtdPpk4eXEv+fC2tqhsWQFuTB A+ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710156048; x=1710760848; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ir6wjm8QQpOyHKpQvjmYeKZYvCMVaJ8Hym4a6JbZZhY=; b=b8bKX+tRL7z10D0CA5qcrblYWgjHASHDW82uJ/9e1mv/iHPNynOeQWZDW39yKUcX/1 dPGz0PDy41KHX6oX9qy8xgHHhJ1CTXuc6Sja9E8K5hhmGkjI9DIJTt6prtPF1MFxwn01 hEV6TT3e2u6s9Xb4bbDsfwZzZItkvIbPhD/qSNvHVpoWr8K4OHkT3lS/qNZFb08JQGxg 9gDHtGIJrksoJNq+gGfNRG8fo0omS/T5dDRkVIXtcEZcPgDDg9za2B1wYhrl32iGeW8u RwoZbXJ6t6GSEV/Z3qp0qJepz5qLZhtjchzoxxRP2jbG3Uvcsa6HMVg17fJyxXg6w11m lxNg== X-Forwarded-Encrypted: i=1; AJvYcCWRMCz2hZm+50hIV7mumdM74+6PPCtzKIldCJcv2FAm1VBQJnnX9kOTl/VQf51r0GP1OHuuxuToAuzNnzXAVZ4WhB1IybIlTbMXT683TpUp+FJf5gA= X-Gm-Message-State: AOJu0Yya2/4kIWC1uHYKNIYNOZgP+WrPtgnvlF131ryvRgWgTpe2YT2y F+s6TCgh/RL7IUjIASIk3x247k5GcSeoXDf7yA8WR6DOFwlh8kVaV2cu+kN73NI= X-Google-Smtp-Source: AGHT+IG8I9e7J8MhWtK/uQN/BtnjXiwRwT4R6zmncYgRe1Vo6oUrPDJcAiXzYb1GWXR3/jtCNFtdKg== X-Received: by 2002:a2e:920b:0:b0:2d4:2c7b:8e6f with SMTP id k11-20020a2e920b000000b002d42c7b8e6fmr1956353ljg.2.1710156048131; Mon, 11 Mar 2024 04:20:48 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id by10-20020a05651c1a0a00b002d2aa0b0d01sm1075200ljb.82.2024.03.11.04.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 04:20:47 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 11 Mar 2024 13:20:19 +0200 Subject: [PATCH 11/12] drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector MIME-Version: 1.0 Message-Id: <20240311-drm-imx-cleanup-v1-11-e104f05caa51@linaro.org> References: <20240311-drm-imx-cleanup-v1-0-e104f05caa51@linaro.org> In-Reply-To: <20240311-drm-imx-cleanup-v1-0-e104f05caa51@linaro.org> To: Philipp Zabel , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Chris Healy , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6571; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=o4jvT4e8JMjMr+7h9dCacXDKcAcJGfFUAAJSEb3xtzs=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBl7ukEPLE1jx/shBH0781Hl+LKKxa3V1C5owSy1 EczEpwuuRCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZe7pBAAKCRCLPIo+Aiko 1ecxB/wMFqq8sHjpPb+hDxOt1trAs/tejtGoWgVKUPjdxjWBAfzTA2snbN5GEPclxaulAuTT8EB s92f9XLL2B/jN8iZ645Zr4x7sGl3cef4aEIgHFQHS7rUuo2djOWN33JKWJBcD8jokp0FXT9Plph nHONKTHZ8YmQHXd6w+lI4Ai5u829kD7DptdJKd841Q1Rbm36R/ZskG7JKjvNoSiuUNJ3ec5iFbX 0aBr5SLq9NP3Dehz7Gd7Hc2Tvia/2i3NgpK1EngXgnZj29qeCHZj5vqiLBOddja5H4aa8pij1AU IFTbHj7vmLaOXLnwqcbwvU0y40BWcye52UDi3NRHqs0nr9tL X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240311_042051_368988_2A39363F X-CRM114-Status: GOOD ( 19.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use the imx_legacy bridge driver instead of handlign display modes via the connector node. All existing usecases already support attaching using the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag, while the imx_legacy bridge doesn't support creating connector at all. Switch to drm_bridge_connector at the same time. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/imx/ipuv3/parallel-display.c | 95 +++++----------------------- 1 file changed, 17 insertions(+), 78 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3/parallel-display.c b/drivers/gpu/drm/imx/ipuv3/parallel-display.c index 9b60bfbd16e6..73a15259c93c 100644 --- a/drivers/gpu/drm/imx/ipuv3/parallel-display.c +++ b/drivers/gpu/drm/imx/ipuv3/parallel-display.c @@ -12,10 +12,9 @@ #include #include -#include