From patchwork Sun Mar 31 20:29:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13612293 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 1A81DCD1284 for ; Sun, 31 Mar 2024 20:30:09 +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=CEb/q+PjYqQ9XYSO5V41Zd5qcrSHgmVWCtC6G0VR1Bc=; b=v0I/FYzZDRdyLD QXH2LBwXLxVuyJ4MfU34bStrM/mlV2zCbpamAZvS0HN0cf+tuv/hRL93eo0RirTV75i/v0atYikXn 6wt5d1XrQI00FlhPXpNIac9yAUz0xUe0PZWpPJmc/lodhQnptdi4JEeAgXIVbDmXW80bSVUJeixjy xuv+7BQNkH7EfnEGTEvdM+CtDib94CkSwZSlxxyDeqAM/8vfUtpfbPITNQny76uP3Ll1D3KvNRmqq jZ15aDA1MV8nK+WBgaLuBQQ96uGcWrxzE8+XkoyClK9Fr+vnVgLmZ8veha9Wxkq/G6jECz921AeJ7 WEIddTdahlYZRSh4pyWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr1oS-00000006GEf-021w; Sun, 31 Mar 2024 20:29:57 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr1nl-00000006Fp9-3nNa for linux-arm-kernel@lists.infradead.org; Sun, 31 Mar 2024 20:29:17 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-515c50dc2afso3808410e87.1 for ; Sun, 31 Mar 2024 13:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711916949; x=1712521749; 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=2KzzvmMhfp7akZBSkslfuhmya0L5lQxB1AJ+Wft0o54=; b=CBxnMaJrewhQVKuWFqDBKbnWhfkhaSvlaK8iRPMt0I5gHUPgvgpLgQUFNOIooNLEO4 uakI5t+hbjHJ/wsvuDMZi0LTqp6cDUJcSz7Y7ezGUo29w3u9UB+fnYOlFTWJywzxe9Vk 4be3CvdJDDnT0DrNTciV6iC4WlqtdTPl8rT4S/SOmx4fmMI2lZmmwzh7gu+ucBCYFiQv 42Up0oDWOGB0KqUZj/niirrYt3A1WSfb82UC7eyP17zQQDMoU5s11o4Ph/hL8vcRMRp2 OzjKYtlrQD6jCs7ohoRPis3WHzF0E77GvzhrbezACGbsVM314d4b//6HcIVlWmokZ+Ce D2Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711916949; x=1712521749; 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=2KzzvmMhfp7akZBSkslfuhmya0L5lQxB1AJ+Wft0o54=; b=JC/B9xxecCtdBjdPm9t0zfpU+ETjmFOjJKj1KVodMmragb3yDLUP0hF/jZ8j1P0AsG aPvIH7fwzYZaFjVEMh500MiPgBK7aTlkjcap1Zy8rUn0HF7Y5vHwXJnA44+tHK34fFht GSX3+wytUJj/ytxoj14U/jmTRW7+LbbhloH8+sec9aEOusgoboK4sv/JFjNWXjuPnHqV YA5/XpF4uq2AAFj4cR/h+gfY7H+zU/Zt67u/sbmP+ATchGJ2SpDNDx+Cuhs9rh6UmzYH N41fGFSNjuueqKfyfsMJfn9fBpSKyVIGU4BBdrnm/An9/0/u8nzaBBkHtCEFMuep7rWD Qd9g== X-Forwarded-Encrypted: i=1; AJvYcCX8o5GY28LWCdqg6QNZvM5zzCDeA6q4z9x8DlU5Gvp8ynT0jqtRAq+RumF5QqofUimB/6rOh1kdAQCTdvZEZJZpYLwKv9Bs3M0b69Hdnha50V3QZzo= X-Gm-Message-State: AOJu0YzmSv4hujinXOnyE9S2onWlEuhNEF0VgydpT8aRAvxMgwyItbgk 6JEvFwJCUyFpqQmHgj+Sgw++AkbLsD8ynjNKnRn01Dg4g40mq3evInri57j5i7g= X-Google-Smtp-Source: AGHT+IFlkJbTHllJhmxuQLe8rza7jxEC5/tq80FTXBgl9MrRzWWrHRQfdLsjPQ9eVX4jnPTBNpNLUg== X-Received: by 2002:a19:6a10:0:b0:513:aef9:5401 with SMTP id u16-20020a196a10000000b00513aef95401mr5436071lfu.66.1711916949484; Sun, 31 Mar 2024 13:29:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 13:29:08 -0700 (PDT) From: Dmitry Baryshkov Date: Sun, 31 Mar 2024 23:29:01 +0300 Subject: [PATCH v2 04/12] drm/imx: parallel-display: drop edid override support MIME-Version: 1.0 Message-Id: <20240331-drm-imx-cleanup-v2-4-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=2276; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=Q3tsX2NxDW1TnkNSTRHZJWIJp8sJ+Hj1Kz/G4qOQ9+Q=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmCcePmSKVxsfb2BiMoKNsmfnhrGb3P7osuWj7O 9DlQcsEYQuJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZgnHjwAKCRCLPIo+Aiko 1Qq2CACzcRHGJvXSJ7Ml0+GAsmRZ4aF7aq9y0LhhBKlCwrSYCrgMog440nF/nbZUYZiK8u/syu7 X7M9jd37lBHflsClDpkrCAJAFgL8Hy1OrsgnkPfJcJGNqR/ReWQeiIw+nvjFjw82vTwVdbH0g2L v+7eIkFQJRCLM73SR0E0NEkn/asUVzqJH4GCtRJGk795BuD5Yh/al4Noqb7JNS6+/5o79bnEYqF YcexNCg3EklMvns+D8cGpuavkOoPp87gn18lL6wGJCeewjR8Z6Y4Cv97kxpChprIzs3uAK+XbJL Ueb7+4iT2BBwCcNThuXHvZBvxBNr3Z+G/ZsWs8lNmtlT6Czi 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_132914_314194_368EA3A5 X-CRM114-Status: GOOD ( 15.05 ) 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 None of the in-kernel DT files ever used edid override with the fsl-imx-drm driver. In case the EDID needs to be specified manually, DRM core allows one to either override it via the debugfs or to load it via request_firmware by using DRM_LOAD_EDID_FIRMWARE. In all other cases EDID and/or modes are to be provided as a part of the panel driver. Drop support for the edid property. Signed-off-by: Dmitry Baryshkov Reviewed-by: Philipp Zabel --- drivers/gpu/drm/imx/ipuv3/parallel-display.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3/parallel-display.c b/drivers/gpu/drm/imx/ipuv3/parallel-display.c index 55dedd73f528..4d17fb96e77c 100644 --- a/drivers/gpu/drm/imx/ipuv3/parallel-display.c +++ b/drivers/gpu/drm/imx/ipuv3/parallel-display.c @@ -16,7 +16,6 @@ #include #include -#include #include #include #include @@ -34,7 +33,6 @@ struct imx_parallel_display_encoder { struct imx_parallel_display { struct device *dev; - void *edid; u32 bus_format; u32 bus_flags; struct drm_display_mode mode; @@ -62,11 +60,6 @@ static int imx_pd_connector_get_modes(struct drm_connector *connector) if (num_modes > 0) return num_modes; - if (imxpd->edid) { - drm_connector_update_edid_property(connector, imxpd->edid); - num_modes = drm_add_edid_modes(connector, imxpd->edid); - } - if (np) { struct drm_display_mode *mode = drm_mode_create(connector->dev); int ret; @@ -312,9 +305,7 @@ static int imx_pd_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; - const u8 *edidp; struct imx_parallel_display *imxpd; - int edid_len; int ret; u32 bus_format = 0; const char *fmt; @@ -329,10 +320,6 @@ static int imx_pd_probe(struct platform_device *pdev) if (ret && ret != -ENODEV) return ret; - edidp = of_get_property(np, "edid", &edid_len); - if (edidp) - imxpd->edid = devm_kmemdup(dev, edidp, edid_len, GFP_KERNEL); - ret = of_property_read_string(np, "interface-pix-fmt", &fmt); if (!ret) { if (!strcmp(fmt, "rgb24"))