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: 13682803 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 54D6E3B1AC for ; Sun, 2 Jun 2024 12:04:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717329899; cv=none; b=oseLLfrO2CNorxNTK/+KDrtZhH0+seG4RI45O4+eH375d5tLkTtuiUzh3Q20VlPDETpfJVXDBYXGnNu1MqzgQ2VgE6uDdaxH2vQcxqmd07eWTMCa8Ycnre5d9mfGom/7A11rqzq/aDISd2DKeHTULQvHz/WARUPQqbxveBfwTQ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717329899; c=relaxed/simple; bh=IEi5tB9QWsMTs4OU15teLStUW+XzV63LDKlz+9Z8mwk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LifnnaMAOTca4QJ5/VnOUi+MCtiAUMW52BCJI8tvI/sKzZWFBVfLVHp2b+FlHOKPoXGM4dkm5xW7Rab9O2Du3CfCltUY2mz+7WxzBLAJLbSTs1fTggKVIdKVVg0iofQNEz2inJSLDA5HXyTUP9X4QxDOT73RODZDjyJThIBIFI4= 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=fB6l69Z2; arc=none smtp.client-ip=209.85.208.178 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="fB6l69Z2" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2e6f2534e41so27209711fa.0 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.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=7bW+dexLEyW8/fiHalshdZSXyhb6haaJOjwgGuObPKc=; b=fB6l69Z28P5ZXEmfg1hxm8bgBBkz/iQeT0Dk4p+rqShZevUiQQ2d6iwHCWY/OY4CRh gm7toQET0f3flETmEhPmFOIqIu80/19ZSnzx96+HpvgKAzpfscqHx7y2hixHsRGBJ18Q IE8oWh6Ds0LLJfdVj5iAu/9WKmppM+4+iJXk2VtuWlcyU2E3DTddrzXSgyHhBkgr+APt SpxL17qsiGQL6Rl7AGpxGlm557u8kDUhbzAXEWRj0xAuyBdobgX85ek7TaoOmMRnaSKX iC6OITulScjx+OXPHmknmCw8OSoCwcGH4sAO1aSl4t60/eKKHeEmE/IR2U6YLbWI3b3O bIqw== 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=YS1AmSYkRQnMkB51XmSalOBubPJ10xtsT5enZZnUZAmEXZ9aiudtamd/gk7dxeKFRB Hik2pZWc71Mkp0G/WWrVJqdlHhmQFP4Pr6YjSPzoXMoJGJhlChHiE848P1ZS6KMhXXFY eMtZ2nq7opPL4wfd5xQUYZawpdLblxC59sw+NMvb+czGgc6S0kLEk8kQ8Ttqs9MP3JZE KKLx/oJnvrOSW3gUFM2CccMLG64gFklQwBjuYGYBx8HAb6ntjKis1E6gkRAeDDOT6uU9 oMRBEvMV7v6t8I84m7FKLob6AC7iJrseTXpnZoVRwH7oo5EnciNTbGoxM7ZbItvF1dgZ h6yQ== X-Forwarded-Encrypted: i=1; AJvYcCVpOfo/qRHOesBUhmzzckt39rctiID0pcjiJCmiRSee2XI4+LrPe7BkInj/kWiOloavaIJ76brg9A8VpN6+tPw78mRb X-Gm-Message-State: AOJu0YxmswaDgkmTmnwCRoFBznkUGHBmtwVZwVD8cj+qqUVHOTS3BK91 KP3P2sckHDlit0x8ZFGBW1zq3apdWWrCRNe8vuCsqdAFfNlEMRGRvjCnk631nWw= 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 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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 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