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: 13588636 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C15F439FF7 for ; Mon, 11 Mar 2024 11:20:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710156051; cv=none; b=Uvt5FodDbacEiujNwJ87bS/Xst1pzwdY64n0GlRIAmnOQh2kNZ5xzE/t9l2g7IU2wxxxjwNxelSF9hwsFqta834x+WvGBqcfcrsSVKlJsKda1DF/GOspjIXsPNQk1mew03Qisn5Gksp+Bvd6k12Oh6+/IDkbCb09WYHdRJZiJ9Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710156051; c=relaxed/simple; bh=o4jvT4e8JMjMr+7h9dCacXDKcAcJGfFUAAJSEb3xtzs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CQJvPSmtPfkVygwfl9wlScU8ktisSwd8CRl/eSU9Auxn9AU3nROAgNFu2Fsp7I4BKcInDBNDEMow+GQoHG6pNb6B5OB0V5vsjXHcL9XO2RHZ/wQXmZ6G204LQDobMQNADPWJMsiDzPrN5UXAU0QDSf9l4+cm2Rb6zPhyb1IpHvA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZxF4EDyY; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZxF4EDyY" Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d2991e8c12so40234171fa.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.linux.dev; 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=ZxF4EDyYSpUHCMqTcnD+b1GPZOv9V9wj/tL4SsPV6kdVb7BKPEisv9KsnbF2sZXseb 2zpiwQ+m5ngMpf8j95HhaQtVr7gZfPV/9s0bZdJVkkT3MkBtEETZo03lkjcaxvShcV1J 2qbFkzxkrkNVYfA3rTMWdl2ooPjYlV/1Tu8mbqgCfyrJnm+c7wvkMp4xUjTKKUWyfnya x+E2FaarVm6k9eptw5NG2Ya0T3JCub1uCPGm3+XhHZkZ8ftjB1bmBDIK+MBL9rszkbeW WirrWPZGjuM2BhUWOBx6vK4bd5w3c5lJnw1IIHGgKpP/Q4ZIrokMuBIraVVPMaLpQoLM 0Fvg== 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=tMZRq90Zp7/C+MCmOsn82u+l720ehs69Gk7qzO+s/FcsHnI1553JxqOzoWGBPc7wmg otNl6z0NU0Iaia5axI7J6M8hufB/q/NthqaTkIuDm/UO9UUQMVyfYjgWN8Ee+h/oZhnd 08z6L9lSjwsVFEgQ0BkaKeG6o2YJuM1ZqRXSpeNVqFNXSKwEF8tR17+W25ltqgoGFqwA TvBFuHp7XnFyNfGj/n/ZZJw53UCCEvZ+nNT8WAXEnG4Jgnm2uU6DwNUmXb6VHZoycxLu wHTa2hGRShamBbvzi3dLBaLlRirHaJ2VDXkAFxnTHzrIeNasKILSYYTTR8/0JpY1DoBk WD2A== X-Forwarded-Encrypted: i=1; AJvYcCXos7EhttZdU/LEvw/i6DNUqeBuiGRZDLGeT32vT3OOXcsYA3eQ/iQz8t173O0xl9ebquqq0PcbUL8Rqvr+2k1IhNCz X-Gm-Message-State: AOJu0Yxpi1GVIaxmpbyMb9wcucmwIPmr+rloexabkovhfNnTphQUEfGL 6r0V7oLJWkBGEewTm3XHyHlXVq1+r8nTZylqvXNrqu1ICo9PKWnZCa8NSg7AHXk= 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 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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 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