Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp98019rbb; Thu, 30 May 2024 16:22:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQWGKlucN1a9esZQv8YRqfWhnrtbgS0Gyj8PfpsB0MsmzvulJeDz2xPTYNjx1QdGjQ8TgTzbvnxEJHXdLbhroGp4ohDHpHsGIFtVV+FQ== X-Google-Smtp-Source: AGHT+IE8NHFzzVY3+Tgqdv3HnfrtrJ5TF35Z9Zw2wG/SNW1nyG+/isBmAvz4W96DqEWeXM/P36iw X-Received: by 2002:a17:90a:39cf:b0:2b4:329e:eabd with SMTP id 98e67ed59e1d1-2c1c43df0d4mr510184a91.2.1717111332034; Thu, 30 May 2024 16:22:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717111332; cv=pass; d=google.com; s=arc-20160816; b=WSbWAkZdTkY8Pf3uvM87xGBynUdgr/LS/UmfqMs6d35TKxfnNLhD9NvO33yxFepvkL cCIwQ/LqyMYWIYMxHUBHsZDEmD0Oxz6oM8sFNeolYCKZkIYgjhvMq4+r8Rmmf2NT8M/g +EFuzl+nTLgs/PijB5uPNE1BIZE8WP6cpF+Ie9LeoVCid4PoOdJdnp9bcmWu9PTrxDh1 8tgprx09Gg1mRgLgAfBfjjmz+iLdb6oRVmHH8JwNTE8i+gtPbTlfs0+v+YV60fu+CRSC +O1P36HmZNYBMyxJ+y1uXaIgUbW2HNTQPsUp4s14MMGuDMHbrfvz97hrO3+zOa1yEH6n jc4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=9MDjCsFEZ1HcOeGBvBo6CqtfbFIZh3loCrt4ShZMr9A=; fh=NESqeK3AdJ7ox5PYATCzpf3KtaOJ3R27mgmw9oaPNXg=; b=S+857d7eLXbYBDvZdSelILr09ZQTlwtST5Hh7F0IgSl6wLIGUBuW7JZIYXD/35SU1S Hql/IJ8jhqBrAA0kdqxR10UQ7woefaNbhVwvS1Bb+Zfv0tL6FeLeMZ7R54OurHUZ8RvM lwZKL5vRbwB5K6fNG79kfmKL2S9bqJt9F8a85K/A7boCOEbqq4wYUWVf/AbKYdw/FjwC FUaWYkuyVE7ThDhyP6LZ8QO1hJOqhav809xJk+MRKI3VGO0knyg0r/mxnOi+TqhdAzWR SfG9wmgK1yCB9v4lMDEud8YssZPO9DAz29G6pkgaYIzOcNymFdvayP7C7kMoYylkh7Ny 9adA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xRdvSvFs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-196016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a7764ac7si2328930a91.1.2024.05.30.16.22.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 16:22:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xRdvSvFs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-196016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 50003B220BB for ; Thu, 30 May 2024 23:13:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65ABF186289; Thu, 30 May 2024 23:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xRdvSvFs" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 E3F0F1862A4 for ; Thu, 30 May 2024 23:12:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717110781; cv=none; b=jtARkbIafv2AMNEPnmwiFMFGDrTbzeovrM0f5kKy71Fjslkj2UMtFxsVehkQ4dHpPFFSYKtTeS2yw695c0SPT2IUhNK1TJHrhfjM1DBSE4+gVqr4bH5wB3b7DMxVlDZ7Xd+g/m5hz/ZsRLFTKR3/BK7krOw9VOdLAkIgDKbGG64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717110781; c=relaxed/simple; bh=4lQZmh/WvHEEtNKJULb6yxMuO5RvAavVpXvzoItg+EA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cT5rCxhQCXKaUE1UCg6iXg6CMyrsUEPe4GWS98zw2Y0U/rdRyHaCljIwuH85Bdya3UOuWBb9saaDbP2cgHMXHawxDCiIaCUAmI01/I0qvI0G81qZ7q6xokwM48UAdxs6OCDnHgDJ7qmVH5lBE1AYILahI6Tq9bM24HQJcMmT7vQ= 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=xRdvSvFs; arc=none smtp.client-ip=209.85.167.41 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 Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-52b82d57963so764085e87.2 for ; Thu, 30 May 2024 16:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717110778; x=1717715578; darn=vger.kernel.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=9MDjCsFEZ1HcOeGBvBo6CqtfbFIZh3loCrt4ShZMr9A=; b=xRdvSvFsr1nIilt6sb9Fb18P65j3+6NdU5xcfguGZ1AmKxggaDaSGB35d/urMJLbM4 VNN15I1YclFKU/5ov2NrppvaFMvQZxouyWdVdmGfUnsdGFnBw6FyjVpUZjE0g4rzXNID Q9VWRZ6l+UJMsEdfuNqdqOWtm3c3UcpCXQtGYvrv3/6X1+NdfOr7qmMUbL0wEV9XyUVW MVgyO/CTxpA3quxwMn3gA4Xa48cuBKVG+vL1YB2hEV8D63jVSUdLldQtFmJ4PZXOho0O hNBV/+R6f/17/zF21Nw9pqw/gCnKKpmBw80TqwIvEEdwDWmggI3Dg6u5HEoIRvaBI2eG jwCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717110778; x=1717715578; 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=9MDjCsFEZ1HcOeGBvBo6CqtfbFIZh3loCrt4ShZMr9A=; b=m8dctJQv8FASbVfyx1ZwIFZxNhGHb0qjGsASpYMkfVmPjJF211oPWl7w7kDHsn5yCU BVoedDUkAy+AvAjC2Tyk6gbdnfEenoFVO03fzQ07Dcwdnv8of9wLH4Eo3kqRQtzuxk2f I7rtZ5Yst33RAnxIaxUQ6tHgh2rLxnVVbeWUUR1i7VPN5YR0WbngjawcFIdFNdKfgVuo UpkjPaEkkYvGd4zN6jc7racXOsBKfcOT6CERH5XMSJJr7VQh10edC9rCaTiURyHlr2Hq Lm4Gg18xv7HxF6Ik2lgL04I9rlXC8aOORnZfdh98ekbFLaR+jnmSOzYmewWUZ4A4dFZ4 NMXQ== X-Forwarded-Encrypted: i=1; AJvYcCUeTBnwmiOWVfotogTLiuYZ6StZKW0rAGCMS2NMbUlw/PxSLpjB/x6szjC2fRSvO6gNGoW/BkrDbTWuWJCam2WPwWNpuT/0qj1p1UFu X-Gm-Message-State: AOJu0YzNSQJhqq86Ouc0e0MkN3ru/OKxyxsevl3NQS7RF9KLfKPIPKza AwqN+42GCRl5oxHCJHlLTNMwX0YT5gHh2UipCKjfEUyCUCBL9PlQnAxcyUr+0xM= X-Received: by 2002:a05:6512:39c5:b0:516:cc2d:f6a1 with SMTP id 2adb3069b0e04-52b896dc4f6mr55540e87.51.1717110777989; Thu, 30 May 2024 16:12:57 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d75d96sm119005e87.120.2024.05.30.16.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 16:12:57 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 31 May 2024 02:12:55 +0300 Subject: [PATCH v3 1/3] drm/panel-edp: add fat warning against adding new panel compatibles Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240531-edp-panel-drop-v3-1-4c98b2b95e3a@linaro.org> References: <20240531-edp-panel-drop-v3-0-4c98b2b95e3a@linaro.org> In-Reply-To: <20240531-edp-panel-drop-v3-0-4c98b2b95e3a@linaro.org> To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffrey Hugo X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1789; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=4lQZmh/WvHEEtNKJULb6yxMuO5RvAavVpXvzoItg+EA=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmWQf4M0YInguykUXTyMqVJtog/s/TjQywd/DDP akfvNNiTlSJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlkH+AAKCRCLPIo+Aiko 1XozCACoI/M4YGZsyLd+SYKu+kRIbTJFiN7yHHoXU5cPCqg2X/+3kZgtkcWXK818KF48F17uK7/ Z60m/kj7JmLjRJQz4g38OKf6BBSasiPJLvQ89Fywc5eN0eXlnvkMsMJWOHSZvmzRZb9iJS/wM44 Os2BWDA88429zTZaZTNroO7icIk7Mt60YK6cg5vuiQaw0IJdRiAy7h7RT5wL3jbm7mSqHmhtXB1 G/el0ZqZ4DJmLPH9+5uNXUi0vMSYIopCpwu3VXievEE1ynyAh9agsecAjuzgFwQTtKwT5dDqzBN qB84Xt/VVYqp9cQ6NLyDUwMH6bUW8bsnRv9DeNKy4V6qExLx X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Add a fat warning against adding new panel compatibles to the panel-edp driver. All new users of the eDP panels are supposed to use the generic "edp-panel" compatible device on the AUX bus. The remaining compatibles are either used by the existing DT or were used previously and are retained for backwards compatibility. Suggested-by: Doug Anderson Reviewed-by: Neil Armstrong Reviewed-by: Douglas Anderson Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/panel/panel-edp.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index 6db277efcbb7..ce2ea204a41e 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1776,7 +1776,24 @@ static const struct of_device_id platform_of_match[] = { { /* Must be first */ .compatible = "edp-panel", - }, { + }, + /* + * Do not add panels to the list below unless they cannot be handled by + * the generic edp-panel compatible. + * + * The only two valid reasons are: + * - Because of the panel issues (e.g. broken EDID or broken + * identification). + * - Because the eDP drivers didn't wire up the AUX bus properly. + * NOTE that, though this is a marginally valid reason, + * some justification needs to be made for why the platform can't + * wire up the AUX bus properly. + * + * In all other cases the platform should use the aux-bus and declare + * the panel using the 'edp-panel' compatible as a device on the AUX + * bus. + */ + { .compatible = "auo,b101ean01", .data = &auo_b101ean01, }, { -- 2.39.2