Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2130687rdb; Mon, 9 Oct 2023 13:44:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+JvlH9Uv137nOgBy9n3ex2pEp/gbN8ihAW7GJ5rLTXrzniiPUdnjnPaD3IqgXZOxE2oAf X-Received: by 2002:a17:90a:6e41:b0:26d:14cd:fb1a with SMTP id s1-20020a17090a6e4100b0026d14cdfb1amr14260742pjm.23.1696884294267; Mon, 09 Oct 2023 13:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696884294; cv=none; d=google.com; s=arc-20160816; b=XBSOjU9CRcgT5Y06Wuhm+vdYhvP4Jxci1xf7moouytqOXEhO4h69xbStqscvdzlkCt v9rHAq0svCgJETa51kfN8z60zWyZWVpAbyfLno4DJh7KJdYu81zqkv0OrZ2I0r3sxrBM iGvPwsXDO+Gv+BheiaaVEuJI1PUKVeDMnSXmF/ieNP/TWRXbZZk/fIDO7wyaOq+DBxEz cYvNP3qGKlSoPypCFs/CePUc1BFo0lfzIPs8lQLq+/WJQPt15EOo8DHNvn8z/at3NKbD GxMMEGzVyZXbSvGVRqdo/jLrLiGZzICKPJdpXsj3BEeo134+6sErKPGulWrxA9aqMVBl Djpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=So3zorxtANU8OzKxE2ER7LHOhZl9oNALCmi3NgfHsEI=; fh=Skzb5yK5Y/LT/OhZ00gW72sxkxHU46E7e/kMbL35asg=; b=P9d5eSRwT22a/uPkx8JOrPw0VTFcnOn4D8RZyr/WHGoJUcrmdzOWYZACggY+9c9lM7 1QW4tdxplCeN2xgicBlg2mIpgIVSusYtonEQRwtIh+ZmdlpCgF9Byixy1axBkXfRfuFx SkNS0NEg3wtLsT4K5ZM3k9pT780yZCXuJEM0YrEWYNdsiFNDSGN5UeRPlrP0P2iA6vK6 t56vDyhvQbDvap8TcDNBDEGcpWWPA/nGIHVP6jB1lGEwZ5Bo3kneODCNgD3pjy5TmVPr E8Y3HBg0pDNpNkr0d40vbPbpQtpqWM4gpu1y6MT28XiEecnJPA1yRWvoNAxN1rCpf912 Y9Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=aqJyDO13; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id lr17-20020a17090b4b9100b0026ce877b4cbsi12963161pjb.151.2023.10.09.13.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 13:44:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=aqJyDO13; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A05ED807C5DD; Mon, 9 Oct 2023 13:44:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377876AbjJIUoi (ORCPT + 99 others); Mon, 9 Oct 2023 16:44:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234506AbjJIUoh (ORCPT ); Mon, 9 Oct 2023 16:44:37 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17B42A3 for ; Mon, 9 Oct 2023 13:44:35 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-405459d9a96so142445e9.0 for ; Mon, 09 Oct 2023 13:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696884273; x=1697489073; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=So3zorxtANU8OzKxE2ER7LHOhZl9oNALCmi3NgfHsEI=; b=aqJyDO13mRnTs0UvX49VhmZwgmh24xWM2KJysbwqhzU0iEZ8UmVslJb9RGmB7rR275 AUlkevu35nvDO9igYeDkgzHZ8GTz6KLb39VcUb6nYA2z9pBinx7ODu2t/XMbcCQ1myqs H4Crj77iyinhsviHzVOvv7l7WT3TifbCZJQxFVNpe/mQwwjHpNOPLL7e6CXhRKnR96fg r1fxiEGGXuF4E6C+SgBouyg3O8VkTM/W9br/FYbroWwF+TrtV+z7oKYgMZi3crOwr055 643ceExUeXnTXDiRYCuGXyFLcE5ZmoJSF1b6kJAru2auLr8qF35dPGprJqM28T1EYTrZ sSrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696884273; x=1697489073; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=So3zorxtANU8OzKxE2ER7LHOhZl9oNALCmi3NgfHsEI=; b=DHp6YjTrusDfEndRhNRxRD1XdGmzTx9trJM4o/QaRGZ+Nf9wHnIcPy59vBUuyGGZEp 05VEqftz/if3dBJQ94sFRnI3ojYe5Ba4jMuJALo5zj4FoenZBJ7dpnSK1wLIyBrPh/n0 B94k2pb56i3w7i7fisY+GT0HsB2zV6xxtYV/I2JgQB1zo+LTPKpuCdioIJGNSfFcn6jm PjXrosf7lqll0oXjGp7Hb7d4t1lN4BT9f+Dqg6KrCcw3DCKXJXzGy8nGEbjIYRx9JR5j LO2u8I0zdfoP8xWF8N9yiKwtEr4oaj1X4DnQI6BIT1LfjHpxSZh+0Y2QBiaRC8dijEDK 5NYA== X-Gm-Message-State: AOJu0Yw5fRWuyYqVqGqddtQVJFOJjirItNqQ3z4fBgGjT5YRRLBQXZXb e4+cMWqes6HB0nhGcikpBF2LtRx9jIPNr9CbswDyXg== X-Received: by 2002:a05:600c:2182:b0:404:7462:1f87 with SMTP id e2-20020a05600c218200b0040474621f87mr381092wme.6.1696884273298; Mon, 09 Oct 2023 13:44:33 -0700 (PDT) MIME-Version: 1.0 References: <20231007060639.725350-1-yangcong5@huaqin.corp-partner.google.com> <20231007060639.725350-2-yangcong5@huaqin.corp-partner.google.com> In-Reply-To: <20231007060639.725350-2-yangcong5@huaqin.corp-partner.google.com> From: Doug Anderson Date: Mon, 9 Oct 2023 13:44:18 -0700 Message-ID: Subject: Re: [v1 1/2] drm/panel: ili9882t: Break out as separate driver To: Cong Yang Cc: sam@ravnborg.org, neil.armstrong@linaro.org, daniel@ffwll.ch, hsinyi@google.com, linus.walleij@linaro.org, swboyd@chromium.org, airlied@gmail.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 09 Oct 2023 13:44:50 -0700 (PDT) Hi, On Fri, Oct 6, 2023 at 11:07=E2=80=AFPM Cong Yang wrote: > > From: Linus Walleij > > The Starry ILI9882t-based panel should never have been part of the boe > tv101wum driver, it is clearly based on the Ilitek ILI9882t display > controller and if you look at the custom command sequences for the > panel these clearly contain the signature Ilitek page switch (0xff) > commands. The hardware has nothing in common with the other panels > supported by this driver. > > Break this out into a separate driver and config symbol instead. > > If the placement here is out of convenience for using similar code, > we should consider creating a helper library instead. > > Signed-off-by: Linus Walleij > Signed-off-by: Cong Yang > --- > drivers/gpu/drm/panel/Kconfig | 9 + > drivers/gpu/drm/panel/Makefile | 1 + > .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 371 --------- > drivers/gpu/drm/panel/panel-ilitek-ili9882t.c | 752 ++++++++++++++++++ > 4 files changed, 762 insertions(+), 371 deletions(-) > create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9882t.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfi= g > index ecb22ea326cb..99e14dc212ec 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -203,6 +203,15 @@ config DRM_PANEL_ILITEK_ILI9881C > Say Y if you want to enable support for panels based on the > Ilitek ILI9881c controller. > > +config DRM_PANEL_ILITEK_ILI9882T > + tristate "Ilitek ILI9882t-based panels" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y if you want to enable support for panels based on the > + Ilitek ILI9882t controller. We'll of course run into the same problem we always run into when Kconfig symbols get renamed or broken apart: people will have to know to update their configs to include this. Not much we can do about it, though. :-/ optional: I guess you could theoretically also include an extra patch in your series to 'arch/arm64/configs/defconfig' enabling this new config, since the old panel was enabled there... > diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9882t.c b/drivers/gpu/= drm/panel/panel-ilitek-ili9882t.c > new file mode 100644 > index 000000000000..bbfcffe65623 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9882t.c > @@ -0,0 +1,752 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Panels based on the Ilitek ILI9882T display controller. > + */ > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > + > +#include