Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp113959lqh; Thu, 30 May 2024 16:13:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzXlmFc0fgtCth8b7lXu8ClU0lHNcLH/TsmIPXwR/atauPzPooUn3S4UVZgsi2kLkBiMXCsVBOpjBR1ZgaRpL6nDsb8NyANglrYLRztg== X-Google-Smtp-Source: AGHT+IGp3f4GZEbGNPCFV/JvJmlz9CQXuzpzTUXgWELd2q9ojzQtDhVF456gCddJfbxx88oSnMoE X-Received: by 2002:a17:90a:df88:b0:2bf:d4ef:cb99 with SMTP id 98e67ed59e1d1-2c1dc560164mr185954a91.9.1717110781988; Thu, 30 May 2024 16:13:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717110781; cv=pass; d=google.com; s=arc-20160816; b=hCVGfC9SJSOl+HvYndaAONcO7IRCINP4eGrTn+02+5/OQqsKcntW9XF90TryeeXb+x EimuK749Bb95t0KF6G4KnWBRgr6EY5PwOizopYDdH9k1CraBlYsSxr4DKp4s/7ZFV7oD ivduWnChfjWB5cdq4JmltzpMwq/X8NGnRM5e32UpZXYoXUDUMo2WuXS6aHG0HR7IAps/ I4/zvq+xFam3L2MQIm+4DZ4iD4kGOijoS7hDyTBEFJK+ETfYmVy3fRotK9pmPgISbZDZ +hcK8ymTdoMlBFaeeKiCOcsTNniRTbiwICIASFY5IAQ0jlT/DHUrigZP1MmebrbOl91j 7Z5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5rtVeYQ5u84CD0AA2JcRrrPlaJCkNb/Fj7mnCC/lgjg=; fh=ezdeOfV9VXweKYkw9lG21olruE4uag2KyrXPqfBGl58=; b=FgwnbGv/RLIjjqcK9J1wy7rzIr0IgNVJORGBy47hF9oC0aTurPZdaaEdUjyGjdHwrE o7gFH9OqSmhuZd6foZOo0W+w+UfmSR4I0E655xX9n0Ytqp4Vp57rVxbUCCj8EqQ46K7B H5JdCWvMbBfM2RdvPiSx1ZhdVBA+QteNCK3lgF4Rbs2QNhTaAyzXZn5F7QZ3qsVHd+9l 5RF7ODxvjEfnc1IqniB4i02yFxjO9fDhCdI+ch2xNgkFAQxBNWnAzSK7NU98h/ARPRdG F8Y0hq84EL2uIbSo5c/ksXHpRICT/RRnBmLoJCIYal8RcDgQWQ9V+qnfluGT8RzXAFQG F3fQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NXOPQRE7; 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-196013-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1e3780092si3041a91.185.2024.05.30.16.13.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 16:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196013-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NXOPQRE7; 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-196013-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196013-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 13208287EC8 for ; Thu, 30 May 2024 23:11:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B9E118411B; Thu, 30 May 2024 23:11:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NXOPQRE7" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 91E0318399D for ; Thu, 30 May 2024 23:11:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717110676; cv=none; b=jegBGdZjSqseysRy77xKrsTNIDSTCvU/tWHYriwONHlikGKEH0w8VVJ9oEkR9NpJXeLvSGOipdG8nHerQFC0j4I7SuPw/l933CHucgeToDogvuTf3zyf82MHuZkEDRu0yKnY/hAFSYonroC0R/bjoNt0yRIAgmUWVy5DfxcS54Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717110676; c=relaxed/simple; bh=MBFCW274J0YqTTxvu3B4tCqGsCfhBgX47D2Q/GYGEqc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CQwC9l9L/SCqVholmU+eDDEX0CChrlfLe+UyNGiiWRLpjm5nSMWIPTv9YoZ+5hFMfTYNL4Xt1fC7U0e5qJuym/qAzXuC5Cag91UkaM5TYgf+MuvPAZADKDQSRkyuzzGWq+unrAhk2kJQEwRlg8WEWm3m0AaShXXHL/vv7kBFPhI= 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=NXOPQRE7; arc=none smtp.client-ip=209.85.167.51 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-f51.google.com with SMTP id 2adb3069b0e04-52b0d25b54eso2102301e87.3 for ; Thu, 30 May 2024 16:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717110672; x=1717715472; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=5rtVeYQ5u84CD0AA2JcRrrPlaJCkNb/Fj7mnCC/lgjg=; b=NXOPQRE7bVcUXqATFyFTvlycGAV6aTQ25lNZHPJbocPea2960r7zbxoUyBxEq16yQy /t4rhX1Htr7vkIL/KOu5EEh9Xd3dD34B4vll3RRAQgG8ItPS79ux2GFFboukoaS9FrMR JPPXZ9W6TpN4zAAqKPKqOjqJrUtzqnxsloTAcnKXT6vXRtKFO+vkFuoH/09auRITC+lR TjpXSroDPgXzDi4CxzJPXkeQT2FZZNEIzrW5O4B4faT/RqjRfbUHvh6VYxvEt0qERXER aNdFGe6zXJBjokYMKZo272/8y6i8jbkXLAr0gPGl65prRiea3JOmCK83Lxuap8TSsdEp UI9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717110672; x=1717715472; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5rtVeYQ5u84CD0AA2JcRrrPlaJCkNb/Fj7mnCC/lgjg=; b=r1XOZHCVGmzH5DORYNpLjPcZSWXCVBjU8xLAvZ/+yuZwlfXDyZr6VjkcmsxW/2olU1 pnCUK+SC120RoN85pBTeYlbY/d/4RfhZfzXO3s/mf+mhGU0/q028gRANkLlCCItY5t3f S9BAmaVmLdj2D/sSYItzw8eWheSChhpDsw5aNdh7yK2B0p76IgiXjhU5zvDYOV0MmFCy e17lj3lPOHXlZO3kz5jbGethtQ1UCS8wkkw+BDUDbucAYrFK5Zvyh4BjDmqFNBcuGJtT y+vfJQ6c96OgEpXK4EhjB2jyrrbVATMxAU8sPsc9uoazIvvG2D1WuevTczovBeDvr+Dk d/Og== X-Forwarded-Encrypted: i=1; AJvYcCVT/tJb12W7EpJaISfNdGUgmRvwBnRPsSV6lZ2L0j+dhN8pLH6jepR9qDqazFWMR8kglPrpmbwmXYtsLcE/agp56V08S0yz4qI/dRkN X-Gm-Message-State: AOJu0YxKtLPP31h9wyBrQmwkifCeO1nVRnWDo6k+q5H/4WIMRdOYwCA2 27HTAk06gHJ3BJdNFTXQwiJh4oDooupSmXCqW041aPA1FVbxYURtXx1BQaP53t0= X-Received: by 2002:ac2:51b0:0:b0:51f:9549:9c0d with SMTP id 2adb3069b0e04-52b895a4043mr42465e87.48.1717110671620; Thu, 30 May 2024 16:11:11 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d34d76sm120623e87.10.2024.05.30.16.11.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 16:11:11 -0700 (PDT) Date: Fri, 31 May 2024 02:11:09 +0300 From: Dmitry Baryshkov To: Doug Anderson Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffrey Hugo Subject: Re: [PATCH v2 1/3] drm/panel-edp: add fat warning against adding new panel compatibles Message-ID: References: <20240529-edp-panel-drop-v2-0-fcfc457fc8dd@linaro.org> <20240529-edp-panel-drop-v2-1-fcfc457fc8dd@linaro.org> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, May 30, 2024 at 07:33:59AM -0700, Doug Anderson wrote: > Hi, > > On Tue, May 28, 2024 at 4:52 PM Dmitry Baryshkov > wrote: > > > > 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 > > Signed-off-by: Dmitry Baryshkov > > --- > > drivers/gpu/drm/panel/panel-edp.c | 18 +++++++++++++++++- > > 1 file changed, 17 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c > > index 6db277efcbb7..95b25ec67168 100644 > > --- a/drivers/gpu/drm/panel/panel-edp.c > > +++ b/drivers/gpu/drm/panel/panel-edp.c > > @@ -1776,7 +1776,23 @@ 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 platform which uses the panel didn'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. The lack of the aux-bus support is not a valid case. Platforms > > + * are urged to be converted to declaring panels in a proper way. > > I'm still at least slightly confused by the wording. What is "the lack > of the aux-bus support". I guess this is different from the valid > reason of "the platform which uses the panel didn't wire up the AUX > bus properly" but I'm not sure how. Maybe you can explain? > > I guess I'd write it like this: > > /* > * 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 platform which uses the panel 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. > */ > > What do you think? In any case, it probably doesn't matter much. The > important thing is some sort of warning here telling people not to add > to the table. In that sense: Ack, I'l update the wording in a similar way. > > Reviewed-by: Douglas Anderson -- With best wishes Dmitry