From patchwork Sun Jun 2 12:04:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13682790 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3B674C27C44 for ; Sun, 2 Jun 2024 12:05:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9EEF710E175; Sun, 2 Jun 2024 12:05:29 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="X+bZmOzi"; dkim-atps=neutral Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id 893FC10E141 for ; Sun, 2 Jun 2024 12:04:57 +0000 (UTC) Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-52b7ffd9f6eso3121964e87.3 for ; Sun, 02 Jun 2024 05:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717329895; x=1717934695; darn=lists.freedesktop.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=7bW+dexLEyW8/fiHalshdZSXyhb6haaJOjwgGuObPKc=; b=X+bZmOzikQTCt062w90tJpETRFUL6cYmndo4Pxf+UNJDhYsO/N5uocVCCFGcnPL/vf LiUfeENPX1KUhPGThkMBBUB4DgD/GEtMo16PeLfrmHDmFlyOq4Qmio2Y28OUrhY0V4/O msit20dml6hnuq2BCjiq0nb5KoCsPF7Pdt2bZ6eCrUWnqMERStUKjEU86GwPpUUUTC0N SEo4G6489WaWQajwCKtehy5PAb8L0vBZcj+C+Im/5Kz/B1wZYGnNLWvJ5vFxPXk6r9CR zLP3bi2qnulXa2MxxepezVhz+D8pT93ePvPHdm33np2xB9lh5aCc6Sn4QXqH0uID3j3v FzxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717329895; x=1717934695; 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=7bW+dexLEyW8/fiHalshdZSXyhb6haaJOjwgGuObPKc=; b=EwIFDAFAJVVYl30hkCrmDJQf7cB4N5uRBGojhmpPYh7203sygIkd8/J1uJFhOEODGb ZKl6FW62fspfLxnfM6DQ+VUS4CCr8r1bd3cJFy7ebQO0++Yg/rkI9Kj+V0Er3Etq8VUW kAqzFqQwSk4W/2LLB74t1eH1TFYRh6JOj81iwQcw3KhL9DSpX2is1IcX/Ox/hNVNzYR0 mLXb2w+ymSmATuy4r9/Rgri/2dobi9rGPG1RvdCa45ZYHdH9ebrkkS7OE+wUNqjkpocT j5MSD+2SfPw4WxJ0OoBORSSPB/512S74kahqLnaVMXEB/pIu5nVBZwEKwA/UFzKg829z 1ptg== X-Forwarded-Encrypted: i=1; AJvYcCWJ9k2BDVizBA0406kWCWHctx6PA2UKKHGe+MXpzyd3DRnSphwg2duKaSrsVYwaYAqQbl7VnKOaP5KIdeuqG/TR94OCWBr2OpsudlqG/aT5 X-Gm-Message-State: AOJu0YwOneAKttFzqw+E+nCf70eFvZzfngd3G71KgOMc5OispHEh+FHH jG/seSV8yz7iY564RS4eX0P97EUDry0UXOjz1lHrRZOMqFsC2Z4X9eeawfMhVtw= X-Google-Smtp-Source: AGHT+IGFycV3aMGXXM7w38pYECCY2FQ381zT2HIaEMAjxO6NjwdIhauSI5+GR2ppjSfXkK6p3d9QBw== X-Received: by 2002:a19:f00a:0:b0:52b:7a10:4690 with SMTP id 2adb3069b0e04-52b896d4665mr3819559e87.61.1717329895551; Sun, 02 Jun 2024 05:04:55 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b8b56867fsm759398e87.44.2024.06.02.05.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 05:04:55 -0700 (PDT) From: Dmitry Baryshkov Date: Sun, 02 Jun 2024 15:04:51 +0300 Subject: [PATCH v3 11/12] drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector MIME-Version: 1.0 Message-Id: <20240602-drm-imx-cleanup-v3-11-e549e2a43100@linaro.org> References: <20240602-drm-imx-cleanup-v3-0-e549e2a43100@linaro.org> In-Reply-To: <20240602-drm-imx-cleanup-v3-0-e549e2a43100@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=6706; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=IEi5tB9QWsMTs4OU15teLStUW+XzV63LDKlz+9Z8mwk=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmXF/eQ/9pfC4pxC633xsYpJpN7E8dltC541CrS uWvFa8Cfo+JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlxf3gAKCRCLPIo+Aiko 1bJnB/9ewG044cOJ9Z+3XAr5es1ilKXbDqOsgBLdk076O5JbhBtEYaRuBn4Vvzdkfb6Q1lqpseb ylaiIKj/bMVU0nPIFRz08DChVmSH6AAw36JD5yeJpYNFEc/ICcXqVLD7rNbxOkXrOzB4e03IqO9 ALbl0kJy88/wF641MPMzCIa0mmj4bD5rvSZA5xFMls+bPAjtpVvqbROgRokyRdv+vOvlw8mXCad HzSupGBWUhuLI6NQFiHzzscWXTsHJXf9LM0Nn8EVyiMPixZfSQ7WzotZAiAuqrggrkZBZ6FQBgH 2esFVqL6t/X7G3AKWuPR3SdfHEOWX8PBtF9USQRR/yZhNZrT X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A 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" 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 Reviewed-by: Philipp Zabel --- drivers/gpu/drm/imx/ipuv3/parallel-display.c | 100 ++++++--------------------- 1 file changed, 20 insertions(+), 80 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3/parallel-display.c b/drivers/gpu/drm/imx/ipuv3/parallel-display.c index 9ac2a94fa62b..70f62e89622e 100644 --- a/drivers/gpu/drm/imx/ipuv3/parallel-display.c +++ b/drivers/gpu/drm/imx/ipuv3/parallel-display.c @@ -12,19 +12,18 @@ #include #include -#include