Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp486118lqs; Thu, 13 Jun 2024 17:02:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPvZI8toGHBEGKRPkj3FDPcErDthYTN5bVnIUpPYJgXbamfVz9uJD/8eGcnIXMqa/A4mOQfcKsXiPQGRUXi3YNbQlZcjynRbcfAW29Wg== X-Google-Smtp-Source: AGHT+IH+9Tysbbu58RBpFvqyFW9AVej8OoRvJ8fFJRnyB+vbyeOkA9dArO3AQyCOWra0Nb/dmfU0 X-Received: by 2002:a50:8d4d:0:b0:57a:243c:202 with SMTP id 4fb4d7f45d1cf-57cbd6a587amr738326a12.32.1718323372176; Thu, 13 Jun 2024 17:02:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718323372; cv=pass; d=google.com; s=arc-20160816; b=AiMW2I9plPA429Fu71Fssz2G5b+1iBcNPgpbIyGpjsyi4JQdNEOSAbTCdjGVJKgYci 3xKf9sG98IhNSQvdGXXOvXXVczSTf8Cjt+G6nJgP7yeAqXt0Z7kaSZnx4YPwZGXoxH6Q VuUuFgXA6ysATwZm3SHX2juXYQsH7763uL256o57v0J+I8nlw24kRl0UsKxLwrPzx9dX /WqbTscJquZrSoUzvZ1o/k1oQYVdl4YqYsoQFnkHm8TEJ08M8DlQBsTxZ6iv9BSDYO+A 6IfV4C2Kq9W0fvdQOpkke2tJsd5NyWk9gTG41lQ6wkwgjA3RGj0fnEbk5Y5FY3boTRrk uuMw== 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=vkpCvK5EJTTZ5JzjKWIiKlKTNiomLgsRfQupOZcIcJE=; fh=6I/KV2uVbOm4NAr9BrcBAH2zSCtghN963iJ8W+j+SBg=; b=Yeo8suC+OCuk+UokQ+qquP8/kbKbwTo0tD+RGRvLJFTAI0/NCrWimZ2T22SncKqsqe 9lMi7HRvXvww7RoPl0TwOfw2ZFs1WVqTVwh+++Pb79uAsH24yUeesJb9UCUpBVZ9kbg0 hMWrvIV7vDlKA74shovZVqWeMixh9kASF+H1XEfetBLC1KLGCTCboXcmwWkbCdnUPCoU Zhdl0a1Qs5/+8BgRqOGJdXzzbWwl9bHgCePocjV9nFvB3RBvpXqG+1A/Bfnz/N0fqWNS BlP3TL8VrjGpU6r+K1uq0fPrbj6TE+yVW71/7shnCoaNAFo8QsODbVDBiqjzjqclHlYd vQtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="K3+/j0wt"; 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-214132-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb7447b90si1159912a12.464.2024.06.13.17.02.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 17:02:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214132-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="K3+/j0wt"; 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-214132-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214132-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AE6A71F22E5B for ; Fri, 14 Jun 2024 00:02:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB7BC881E; Fri, 14 Jun 2024 00:02:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="K3+/j0wt" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 1B57E17D2 for ; Fri, 14 Jun 2024 00:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323352; cv=none; b=XPtmbjgEQhbMOwvLyHfmpIiEs/Ud1ClIyZkYQAVMAtANsCyHMiO+luUq75+x8NceuGCKQzArL+AWO0qhKsPOtoW/cGTsxVqLJzQcei3/ymYR9v7oaqWaglQtrbYUa6pImHyoh5HWAIkOgpIvdWZcFTBb4kbyXe2m8/nQUHwykv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323352; c=relaxed/simple; bh=ly28wJZAdwzm4TkEnW8cpppYMs8mXFFUqZf4RJIpHsY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UguQ4ADdYs/az+Ypyx8Lw7e4rDw02dEDukxt90E+5u7VIVny4OVseBtJg+bKU0zokKAdRqJwzENDE/PsYJbp7AFu5wdmGIU4dAVnHS9Rlpd7unLTLhOOZMsntgzSRRYUpdEJr8B5xU7shl8QlAbovIB2CZw0Uyj6UAu7PaLNh+4= 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=K3+/j0wt; arc=none smtp.client-ip=209.85.167.44 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-f44.google.com with SMTP id 2adb3069b0e04-52bc3130ae6so1855112e87.3 for ; Thu, 13 Jun 2024 17:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718323349; x=1718928149; 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=vkpCvK5EJTTZ5JzjKWIiKlKTNiomLgsRfQupOZcIcJE=; b=K3+/j0wtsHmIvdqCUdtxl8piGkanaqIrcaOSANp77mpMgWWvFvllCyLlpQHcXlcLWq rb0gleEo9K04gTBiY3ZnR5kQhLIM6rFIixtUks47vRPVvIOry56Qc8Qt/0LK4/sw7qvc VndTRnww1JAu+deg1yadLCq16AeshBg/JfbnDhc19X5dFDBrFNhNKN1kz0MccLMKSrzv vE5oFpMZiiVhNHCf427O/dvccPkR1Bh/fzV+AcxA22yWOzRCbsebQotEYOuXFjQUg5h7 dl/D2u8jc4mj6+wjEkvhKZt1YIxupNM6Xpn/afrBKPZ8N5R0dNVbFmkNlx7cej7xGSbG 0sjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718323349; x=1718928149; 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=vkpCvK5EJTTZ5JzjKWIiKlKTNiomLgsRfQupOZcIcJE=; b=I05WjOJGdOJvb6oILxfgBsnEE7WbKt3UtaRB5ZLqTgOuhT7wYKtwh2LXb1fPIftJ6R 8j0OW5G040b+prg1sqQsNlPgCmHCbAOJb8xaeXko19p9D400Ik/cWJ1c6UbEyltYHN5Q Wa277Q7aDq8RfPfegQBHrsTRt3ITlk9oJeZBCScyk9H4DD06ro+DvZI9tbGAlJgnSuvv PudDoekEGe+870Y8IdmRia9OvyYoWD/otRMbuZtAOQPQ4uO1SaTcWy+zbev7d1aNPtDx B/M+p6hj+uaKzqEdWTSZ37Y80D0yZbiMM9fzxouLqPsGVHuiC3Ev9MBgfQW/I0oif2lC +LnA== X-Forwarded-Encrypted: i=1; AJvYcCVT3NYLGRtk/M0H6bhEZB1hTsrJT+3VmOkF8V0BLmdK/1zM6LBE/L9xK+RIkBhPrGN9wLzhiiFnAm57kPh/s5BRpmTck+1DJoMG5ZZN X-Gm-Message-State: AOJu0Yygp5f4T2+NdziqX5jzzrZ22adHBRWQQbZfp5z2tbjHsgoXJUKW h9AUbAxvVfnlbZ5Eehn4TBMmgGJKLWtWtA0z0CqHSvfa0lPVfZZROVqzw3fulow= X-Received: by 2002:ac2:4ada:0:b0:52b:c27c:ea1f with SMTP id 2adb3069b0e04-52ca6e91627mr570592e87.55.1718323348734; Thu, 13 Jun 2024 17:02:28 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ca288804dsm374797e87.262.2024.06.13.17.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 17:02:28 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 14 Jun 2024 03:02:20 +0300 Subject: [PATCH v4 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: <20240614-edp-panel-drop-v4-1-4e0a112eec46@linaro.org> References: <20240614-edp-panel-drop-v4-0-4e0a112eec46@linaro.org> In-Reply-To: <20240614-edp-panel-drop-v4-0-4e0a112eec46@linaro.org> To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffrey Hugo , devicetree@vger.kernel.org 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=ly28wJZAdwzm4TkEnW8cpppYMs8mXFFUqZf4RJIpHsY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBma4iSY+Yydhiuir67MsMxJdnd2Q8Ogxxf/FjtW 28+90lvPdOJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZmuIkgAKCRCLPIo+Aiko 1XGACACfi39l6OxtT8igatdQccpf9x3vBJq5skcjoGrat0PbMc8DgVkX7morDBPARu7RHfFBkNt xzWrqoHmJ9vkgMf7bWLP2q3A8zQ9SMJGxTBEbsmVRyPuslO3LWe1HlYzG36+7MGTSUMqB5Hy1Hx 9uBx2CMq2UeA9QgOBhA+ma3H99VPMjzDcGsN9fQ+hj3l3CmSou4/L5TgjBBBTSi1ppdHYEWX/xj 2ZQ6qOZNY8Ob88E8By6lCDov3+bjsItFrHkDGkCDE5ru1jQO3LRIVz9/+h7VZHthy9Mw3jHCMuJ BpSaGD4Fr8p5MkT4mxWughrf3EM4IMkuvAdfwd1kPYbMMGAV 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 67ab6915d6e4..85edfd3d59f3 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1762,7 +1762,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