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: 13682818 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 8255FC27C4F for ; Sun, 2 Jun 2024 12:05:42 +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=Lidhi8x627u5q41y1rqjx7EQrAaO+Sksg9D1fQu9nOw=; b=VHyD5Xno/xKwvh 9SZ1+WHvwe8lrtrZTU0xs9m2Gu5aG/xdPZOPCp4mPYMIgkuaM5jWhF6Q2G2qjTjB7rd3OVahu/vP8 lqguYqUcQClVON5Vnvnh/HU9lVC8pehIvqx5HMBUXCPxCDd7Qikvr/4FWZUUMmp/8XZFnNSDAGXp0 pSQq8CCeJ5ic8ThqOii2exW9IHRQPXp/QfGLbvUgvOosPrcGuzY/R5UPl2GfK1gL+mZUBk6smZZ52 Wd2gpKi2zHNRpHsGISwkotioygfyC0FtvIMnH1aSL6GAPVb4uNWUjmYZs3pEYiE3jhm/1n0iLn/zP /0pNAL6GZme5OGSk59rA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sDjxr-0000000EBuw-1Ig0; Sun, 02 Jun 2024 12:05:31 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sDjxK-0000000EBOt-1zby for linux-arm-kernel@lists.infradead.org; Sun, 02 Jun 2024 12:05:00 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-52b92e73e2fso1214059e87.2 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.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=7bW+dexLEyW8/fiHalshdZSXyhb6haaJOjwgGuObPKc=; b=AFzDKEmhjupD51ke6URGeOtSa72nyvRYNjWklivQ2GP0letclEeW8UiTNEG/Yh8HTN kWxDjoW7xV0MB/g/8nvd6M3UW0Fse8KLl3T0FN+1oW4AFI6rx1vzkTsOHWs+PQN1KyFs FuD5YTAS8QCtDEF7XMeyXUq6B4f+PyqQXWwgk8a3ysSeZMLsIyGtb3eNCn4ohFnW36LQ QVv+aRrwK1TB4rOZU0U6PcaheSuK26AUDBjrtm6opaDx6SDUUitq5p1IZ0bgt32acDng zzqsBvHvFasegSDZGtla0uGQbFCY5uQl1oB+adUBo1o9xlwNJN6Bo3jeVautmG81Fl0M 9a8Q== 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=pjZ+V/FGtd70V4m909giwZCI3wVxu4bKKbzD6bwB+MdDxkajZFWf+lkR/GSXtSYfFy VMJOszDRqy5rpW4yLZ5fTvsjDzCt0ZvaeK6m3Xup7Nx/zbUnCe0w0B+wmkHdMKQqBqLG MHiZR9QEVaNrzhCez2zMg0kTvLyDs8THcOQaI0m2ktConH0MCuQG9YHShfmVP8w9lLgI dyCpqLKs9qA8m7L9nzNqhx8XOWj/l7+bhhSQNF/R9ZJZBRkEk1Q/Fidggk0Ik0tUzQaC s4yZ3R6YhpS74EVK0b5Hb38jbiXZyot8UtpFIgTNtqOtPIKJDVKYQJ6OIfeD16IG/o16 ej+A== X-Forwarded-Encrypted: i=1; AJvYcCVIzBlflDkdjhj1HJTggbeR9Cwfhl8EGK6FwRDNokn+Ma3LwekqHsc6k+/poltM2Y3utLFFdcg6fDwhCYl2xMMVrfxhNPOzLHBdMCQHkQ5wbW6jYjg= X-Gm-Message-State: AOJu0Yxwe5PUKV4R/dGs3VcMkVr12efYcfGxQu5ceThPHztGeSaMZM1Z M7V+5CeOve+6AOseNIdvgDiurtuvUV65V1kaydABNA/53YqWE3FUpUngbc/kREI= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240602_050458_726823_9374A366 X-CRM114-Status: GOOD ( 19.60 ) 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 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