From patchwork Sun Mar 31 20:29:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13612302 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 01250CD128D for ; Sun, 31 Mar 2024 20:30:25 +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=Y5n6guy9WiFl1qysKLYFg6TbSMHY7EznatICyMLLvoE=; b=Pkzj5bMzM8J+gE VnRnU6dj7rhKY1ENXxY5VBxxVOeHnh3v2iKTzyjtY1Pdh5LPDbfnxn7JRUbKh3cjl36ylItpPFzEp Uo3aH1g3qF5cpmWqIDIbtLPoL/JUuTcQVTCyyrjnzCkXTs8Al4TSLHKasNJ+/3Evvm8mhDc0+jrVR PN2KvRVHWaIZXN69d7tbMwTzC/VRQXv7VwXkmWYcbQvnC9YYQgUcvjXVmk15soShHJcd5SqDXniB6 8zKFcuqW1/ZgpnPNhI/QTzZ70KlWkPgQgZMmaAU1BQyGnuh46L3wA+33dBxTOQ7vRUmPbKpjSnp0F PGxyND5iTY2JhyvU0Lrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr1ol-00000006GSF-01a1; Sun, 31 Mar 2024 20:30:15 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr1o1-00000006G1k-0eKk for linux-arm-kernel@bombadil.infradead.org; Sun, 31 Mar 2024 20:29:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=foSkspqJ9yzySh9es4MpzF86VSrPE6OklrvE2P/albQ=; b=VihFfgWnZvI4yYTQPkzcz4xWwj wragTsT9On9EOXfSZOPFXe4xs6PgHLRZKVuW0A/E8pPaCDoQKgdPFaO4nXJYfRqYAW+T2kJNhVAxV OCKx4U9nMDZW0ZU1VVnVaNJjK9F/ZXvF5iHDubD6Q9rEleGGDOVbQv8k1iAFbVlBMWFUhKIiXS+ls 0ZGefhU0pZDuZs38yixkIByFFJjFaWHllHptBVltA8euIUgK4UANwAE/iwKAYBIQ8sROC4D6Ou2Y7 Jban3HHOGs9lWCNjOahh3cAmaPEuhtFHY3hwDiqG73jQt441xH7nlaOxo0cXxdd8YwuxRrxcxu0PX EzZu/ZyA==; Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr1nq-00000002isG-3DGn for linux-arm-kernel@lists.infradead.org; Sun, 31 Mar 2024 20:29:27 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-513ccc70a6dso5661254e87.1 for ; Sun, 31 Mar 2024 13:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711916955; x=1712521755; 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=foSkspqJ9yzySh9es4MpzF86VSrPE6OklrvE2P/albQ=; b=bF0pY/aDjPoVPSnWlUJ9VSU+AqJYuxDCo1peC6b7hQXBO/vbsP1w3wREqInKKlzGdL Up+b8PK9tPgFkrH0IVQi6BiLii5CI66TUBPw4ncYyL3/g4U2oVlkR8pxgRpH33SZKQEG 1DWSKaSDSnE0upgaE9WhW7s0ZENYVVsiNjLeUlJeMu83EJ1ApU4cXIy2TCaB72O/d75K KmS+AbLHNW4GWjpZUpp4MahpTxEeCtVwr8zxBJxL1shQwbOVsUmK4JtvscTU83oosO3T qaOplQ88SsPmWKeSBKQybbpNqWEOYIEVHDpUXP7FBzoQQKpwIvsgTqPOYybgl0jBCtZt N8GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711916955; x=1712521755; 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=foSkspqJ9yzySh9es4MpzF86VSrPE6OklrvE2P/albQ=; b=ZlwydRZF6n92Lr7+oQFDuwsXuDR8oBT+V0wux4wlH+4qaDcPAMSWf+x54U35sh4pHG ddVHvVIMcyeovL8Np7KjLBF3hq01rE6EnJ0YR2aHIla07CjamFOor9xmDB+xjxqbzV7q qQNtZhnoAzp6WdgovIGyt7nHo8BrIO7xiiVnZPoDp3SS2t7ZYQfRx+sVm5Spe05XaDvj +I1tEL6oaH6dHTtEcxMsEFiRo5FGgLROI7yV+/3Wuo3AOf/JKdo4ExRiGjDlAA3/1TIA WQgzbj+AfUzja7eRrm3GN4nHY7p/eySRKRDmp2iz2MDdXghqFwKwcEvDS62TpE4H1G1k rhZw== X-Forwarded-Encrypted: i=1; AJvYcCWAx4Unl92bIxA+JoN94kxlCuEB28JZqbHTOcGCSNUhCuSVP22MJ23Z5wS6EOx37mIvPQ5UQJW+G8oyYmLVSuWYT2cU+pBK2hI03feekMgPF4xyCQc= X-Gm-Message-State: AOJu0YxXzCGqlQLnQGEKgvprcfawL042Ck/9rCMnA7EHHtp5YtaOPvkK +cNz5BAoTjkl0+fU48sLBRlRG5nrZZ6Zr0D60vksCPLUT8b/XTnyBDUnSqIAiY8= X-Google-Smtp-Source: AGHT+IGg0xfHc0kOH4QpuYUB2a3JDppnEOzZySYj7iyb375/+GGQD9QK535yqdNhNjNr4VDPUzWckQ== X-Received: by 2002:a05:6512:4016:b0:513:c61c:7331 with SMTP id br22-20020a056512401600b00513c61c7331mr7827095lfb.3.1711916954708; Sun, 31 Mar 2024 13:29:14 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id y25-20020a197519000000b00513cfc2a7aesm1237276lfe.71.2024.03.31.13.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 13:29:14 -0700 (PDT) From: Dmitry Baryshkov Date: Sun, 31 Mar 2024 23:29:08 +0300 Subject: [PATCH v2 11/12] drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector MIME-Version: 1.0 Message-Id: <20240331-drm-imx-cleanup-v2-11-d81c1d1c1026@linaro.org> References: <20240331-drm-imx-cleanup-v2-0-d81c1d1c1026@linaro.org> In-Reply-To: <20240331-drm-imx-cleanup-v2-0-d81c1d1c1026@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=6643; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=uctUlnQcyGBQeHN0vle7bLM2HzPmJbNr1vh1TT1VxwA=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmCceQyvQmoPJDE0w2GzVxlXgU1V6fGmvq/hIBf LYUJj+H3SyJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZgnHkAAKCRCLPIo+Aiko 1dMuCACEGNc4hgxrk21tZQW82EzMJrEqqmIfLYmw2ghuplZLGyygKf1TmDQyytVCj3H0T0oyGJo eGDcSPzzqwAyySlOga4yGV9EkCgnHCscVD9EUr0eD50ss8CY6h0vHtixGGqKei4PAah8BMbzDuK t3rRmIewyeudFoL2dMi7dO4nv8JfBMiIPDXTX5WAoO9aYnT78QD5VSR0yeWOOOWQeXjH6AiUaV8 iHKul+pob7sq36z08bMb6VrcBefBILXojx3jC44sLz4nBiSnp4yNfBBh+/7KzqBJZcz1PW5Y1pM wFzkLJs3ep9s2LLj3/VzDO+W+kvMrRsB4tcxNKVMTP3CfjQ8 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-20240331_212921_132455_73AF775C X-CRM114-Status: GOOD ( 19.80 ) 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 | 99 ++++++---------------------- 1 file changed, 19 insertions(+), 80 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3/parallel-display.c b/drivers/gpu/drm/imx/ipuv3/parallel-display.c index b7743b30475a..cf29021f497e 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