Message ID | 20230703-fix-boe-tv101wum-nl6-v3-0-bd6e9432c755@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp540132vqx; Mon, 3 Jul 2023 06:54:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlH0dDHxxHSiHvsZgMMSOJc0WNjl2QRGqvuIC71/cJlNjxMdYVKmU5VdETjoTxzq4koXgcja X-Received: by 2002:a05:6a00:399a:b0:681:9fe0:b543 with SMTP id fi26-20020a056a00399a00b006819fe0b543mr12484131pfb.2.1688392440735; Mon, 03 Jul 2023 06:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688392440; cv=none; d=google.com; s=arc-20160816; b=1FWrHz81fH9S1f9sJuOIBui17TzgtnKBJMl3+vAzeX+p+C4NSS1fo3XgoiYPAm3xxB IixMBC4/nh/ml1eR5xcIHqUw/EuCzTaxyfm/zsx2CdhEgiZugNO4cRzW4jlYqqgQZawJ c+D5496p+52a/Z/FhPPN51jmNd6jYi06sxDxTeLSDi80M2IXQlHiOGA8QIkr7kKu3f8E aJuykg1VRq7n10KEJcQMUS3Tfj6w5y0wQZH5tQHvIEYrLyqTvmRsE9F72eBMbLPxPBee wnjPb4coJNXOyLHUfZIp9VLfsaVGxcmih2d6ljXtpKiERlkNeE82w4YVsSMKsb0TN5em 9QyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=tinG0/XqkHHzI3FCP2o6G+zrStuwejYrOQFggB4/KKI=; fh=iGRERHoYig2Z3LVWfvcCj8g0kjrzuq6ojQ3F9gDjT/A=; b=K6tr6AXLAdtVhFqiVsbIU0xKcA+RAOVX4CFcTN3Ap9s7n5ASMgPKp9JPkpwypjymjl nlv1suR7aswsAaGu6HuuxTfie6S7RhYayUbxfDQrd1YeL2/86YbZ4qaJzAPVzakvts9j 6D/9gIFBgIXM1yOK+AHaX/wbPHBNUDs8gGH5DcxTZuoyQOgSjoB8y8PnfLz4qJydQUTT tdTk/QMxL+uN6/Jr9HqosuWjNkvrjc2gYXm5+IXSC/BioNonuWEcU/RqKMyxi7cxRb9z 4/guCEpUHctN/u/x+UwbE+/sTvEhxwwYQ4C245K3m3lpwiokkGI+A13P2dWm778MwNcG g7OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Akv376Si; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a630c0f000000b0051b9a71329fsi19685809pgl.360.2023.07.03.06.53.48; Mon, 03 Jul 2023 06:54:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Akv376Si; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231411AbjGCNWA (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Mon, 3 Jul 2023 09:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231214AbjGCNV6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Jul 2023 09:21:58 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FCC0E3 for <linux-kernel@vger.kernel.org>; Mon, 3 Jul 2023 06:21:57 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b6994a8ce3so65304731fa.1 for <linux-kernel@vger.kernel.org>; Mon, 03 Jul 2023 06:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688390515; x=1690982515; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=tinG0/XqkHHzI3FCP2o6G+zrStuwejYrOQFggB4/KKI=; b=Akv376SiheqT7/HD212s99wJLv9JXMTr9kmlGBpWnI4y8zKrM2IHTYMQIj3nB2iNhK VBSi/XV1bivCL1R1B9yFgxz2ShMDnaySOMEIwphtfvcBnY/hbhodRtGxpErpQgytv9kh lqs/Lc1VGxRR/s/Tr8nnNsoiPfpP4v88P++WA955l79d2vhnLm2tGUofBe7uGlntf/Ul xzyk42q7Uk/yLiUKZGwgCzOJFOINeaMdCbqOJC1lhohTZ8vfoRHmDUMez/ZiHxBzEYjQ 6Yrd0JyCXg2SB/6bLJKa/iAWUtVxf9qr4QDktVY15KbKymPXL6cN15pJ1/aKDmthWE1r HI1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688390515; x=1690982515; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tinG0/XqkHHzI3FCP2o6G+zrStuwejYrOQFggB4/KKI=; b=Xe4Ek36iDt26V3vv52zCKobd30VbVGkowgwaSsIsBcmvUbpQeRffBYKpczV/HTEg4Y HHOX/acvgZxymdXVBSm83AZjh4ggSKpxkPEJWe4pqylH3/1hGgJsOqr0vfUMcxnlEIni D9U9aTFEUqidafBw+g6Iw/pX0rfTHxpA7lrV8XuHRl6JJ9KfhzMZp52TJl+l1Tq1UnVC Uc08BoyHMU4ZwAd0+tHIrK2Yy6EFkoIHc02lNlIPSfvrlLvUt1RrE/lBKlNzbK3jyMBE omKAJnc+cdc/1RO5Bk3J+NaBfq/iCISBG1WwiVtKRhkRLNoIuQWLqXdMfxQXM2GkN4MF zkfA== X-Gm-Message-State: ABy/qLZ238WDkvgLNGeazXlWP3cng5kkfqyM4S2WI6KwSW4aMeo9E7PR ts1ZfxCyb2An59uQuCfCA/Ev0w== X-Received: by 2002:a2e:90c7:0:b0:2b6:cf5e:5da0 with SMTP id o7-20020a2e90c7000000b002b6cf5e5da0mr5791563ljg.40.1688390515464; Mon, 03 Jul 2023 06:21:55 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id u10-20020a2e9f0a000000b002b6b7a98c4bsm3535238ljk.77.2023.07.03.06.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 06:21:54 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH v3 0/4] Fix up the boe-tv101wum-nl6 panel driver Date: Mon, 03 Jul 2023 15:21:48 +0200 Message-Id: <20230703-fix-boe-tv101wum-nl6-v3-0-bd6e9432c755@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGzLomQC/42NzQ6CMBAGX4X07Jq2lB89+R7GwxYWaAKtabFqC O9u4eZJj7Obb2ZhgbyhwM7ZwjxFE4yzCfJDxpoBbU9g2sRMcpnzUhTQmRdoRzBHwcXzMYEdSyg R8w61lFoplqYaA4H2aJthG08YZvLb4+4pCfbe9ZZ4MGF2/r3no9iuP0pRAIcam7yqFS86XV1GY 9G7o/M924xR/mORyaKKqq2oIVWc+JdlXdcP7DD+LBgBAAA= To: Ruihai Zhou <zhouruihai@huaqin.corp-partner.google.com>, Stephen Boyd <swboyd@chromium.org>, Douglas Anderson <dianders@chromium.org>, Cong Yang <yangcong5@huaqin.corp-partner.google.com>, Jitao Shi <jitao.shi@mediatek.com>, Neil Armstrong <neil.armstrong@linaro.org>, Sam Ravnborg <sam@ravnborg.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org> X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770407791738773919?= X-GMAIL-MSGID: =?utf-8?q?1770407791738773919?= |
Series |
Fix up the boe-tv101wum-nl6 panel driver
|
|
Message
Linus Walleij
July 3, 2023, 1:21 p.m. UTC
This is two patches fixing things I would normally complain about
in reviews, but alas I missed this one, so I go in and fix it up
myself.
Discovering that a completely unrelated driver has been merged
into this panel driver I had to bite the bullet and break it out.
I am pretty suspicious of the other recently added panel as well.
I am surprised that contributors from manufacturers do not seem
to have datasheets for the display controllers embedded in the
panels of their products. Can you take a second look?
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Changes in v3:
- Rebase on drm-misc-next
- Convert the two newly added Starry panels as well.
- Break out the obvious ILI9882t-based panel into its own driver.
- Link to v2: https://lore.kernel.org/r/20230615-fix-boe-tv101wum-nl6-v2-0-457d7ece4590@linaro.org
Changes in v2:
- Fix a missed static keyword
- Link to v1: https://lore.kernel.org/r/20230615-fix-boe-tv101wum-nl6-v1-0-8ac378405fb7@linaro.org
---
Linus Walleij (4):
drm/panel: boe-tv101wum-nl6: Drop macros and open code sequences
drm/panel: boe-tv101wum-nl6: Drop surplus prepare tracking
drm/panel: ili9882t: Break out as separate driver
drm/panel: ili9882t: Break out function for switching page
drivers/gpu/drm/panel/Kconfig | 9 +
drivers/gpu/drm/panel/Makefile | 1 +
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 3037 ++++++++++--------------
drivers/gpu/drm/panel/panel-ilitek-ili9882t.c | 759 ++++++
4 files changed, 2067 insertions(+), 1739 deletions(-)
---
base-commit: 14806c6415820b1c4bc317655c40784d050a2edb
change-id: 20230615-fix-boe-tv101wum-nl6-6aa3fab22b44
Best regards,
Comments
Hi,Linus Walleij On Mon, Jul 3, 2023 at 9:21 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > This is two patches fixing things I would normally complain about > in reviews, but alas I missed this one, so I go in and fix it up > myself. > > Discovering that a completely unrelated driver has been merged > into this panel driver I had to bite the bullet and break it out. > I am pretty suspicious of the other recently added panel as well. Do you think the starry,himax83102-j02 panel needs to break it out? Thanks. > > I am surprised that contributors from manufacturers do not seem > to have datasheets for the display controllers embedded in the > panels of their products. Can you take a second look? Sorry, this panel datasheet is not open source, I can't share this datasheet. > > Signed-off-by: Linus Walleij <linus.walleij@linaro.org> > --- > Changes in v3: > - Rebase on drm-misc-next > - Convert the two newly added Starry panels as well. > - Break out the obvious ILI9882t-based panel into its own driver. > - Link to v2: https://lore.kernel.org/r/20230615-fix-boe-tv101wum-nl6-v2-0-457d7ece4590@linaro.org > > Changes in v2: > - Fix a missed static keyword > - Link to v1: https://lore.kernel.org/r/20230615-fix-boe-tv101wum-nl6-v1-0-8ac378405fb7@linaro.org > > --- > Linus Walleij (4): > drm/panel: boe-tv101wum-nl6: Drop macros and open code sequences > drm/panel: boe-tv101wum-nl6: Drop surplus prepare tracking > drm/panel: ili9882t: Break out as separate driver > drm/panel: ili9882t: Break out function for switching page > > drivers/gpu/drm/panel/Kconfig | 9 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 3037 ++++++++++-------------- > drivers/gpu/drm/panel/panel-ilitek-ili9882t.c | 759 ++++++ > 4 files changed, 2067 insertions(+), 1739 deletions(-) > --- > base-commit: 14806c6415820b1c4bc317655c40784d050a2edb > change-id: 20230615-fix-boe-tv101wum-nl6-6aa3fab22b44 > > Best regards, > -- > Linus Walleij <linus.walleij@linaro.org> >
On Tue, Jul 4, 2023 at 12:04 PM cong yang <yangcong5@huaqin.corp-partner.google.com> wrote: > On Mon, Jul 3, 2023 at 9:21 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > I am surprised that contributors from manufacturers do not seem > > to have datasheets for the display controllers embedded in the > > panels of their products. Can you take a second look? > > Sorry, this panel datasheet is not open source, I can't share this datasheet. Perhaps not, but you can use the knowledge in the datasheet to name the commands and give better structure to the members of the driver, if you know what commands mean then provide #define statements to them so sequences become understandable. See for example patch 4/4. Yours, Linus Walleij
Hi, On Tue, Jul 4, 2023 at 6:16 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > On Tue, Jul 4, 2023 at 12:04 PM cong yang > <yangcong5@huaqin.corp-partner.google.com> wrote: > > On Mon, Jul 3, 2023 at 9:21 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > > > I am surprised that contributors from manufacturers do not seem > > > to have datasheets for the display controllers embedded in the > > > panels of their products. Can you take a second look? > > > > Sorry, this panel datasheet is not open source, I can't share this datasheet. > > Perhaps not, but you can use the knowledge in the datasheet to > name the commands and give better structure to the members of > the driver, if you know what commands mean then provide > #define statements to them so sequences become understandable. > See for example patch 4/4. Patch 4/4 LGTM, from the datasheet 0XFF is EXTC Command Set Enable . Description: Set the register, 1 Parameter = 98h, 2 Parameter = 82h, 3 Parameter = Page value to enable “page command set” available. 00h = Page 0 ,01h = Page 1... 0Eh = Page 14. Thank you for you patch. > > Yours, > Linus Walleij
Hi, On Mon, Jul 3, 2023 at 6:21 AM Linus Walleij <linus.walleij@linaro.org> wrote: > > This is two patches fixing things I would normally complain about > in reviews, but alas I missed this one, so I go in and fix it up > myself. > > Discovering that a completely unrelated driver has been merged > into this panel driver I had to bite the bullet and break it out. > I am pretty suspicious of the other recently added panel as well. > > I am surprised that contributors from manufacturers do not seem > to have datasheets for the display controllers embedded in the > panels of their products. Can you take a second look? > > Signed-off-by: Linus Walleij <linus.walleij@linaro.org> > --- > Changes in v3: > - Rebase on drm-misc-next > - Convert the two newly added Starry panels as well. > - Break out the obvious ILI9882t-based panel into its own driver. > - Link to v2: https://lore.kernel.org/r/20230615-fix-boe-tv101wum-nl6-v2-0-457d7ece4590@linaro.org > > Changes in v2: > - Fix a missed static keyword > - Link to v1: https://lore.kernel.org/r/20230615-fix-boe-tv101wum-nl6-v1-0-8ac378405fb7@linaro.org > > --- > Linus Walleij (4): > drm/panel: boe-tv101wum-nl6: Drop macros and open code sequences > drm/panel: boe-tv101wum-nl6: Drop surplus prepare tracking > drm/panel: ili9882t: Break out as separate driver > drm/panel: ili9882t: Break out function for switching page > > drivers/gpu/drm/panel/Kconfig | 9 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 3037 ++++++++++-------------- > drivers/gpu/drm/panel/panel-ilitek-ili9882t.c | 759 ++++++ > 4 files changed, 2067 insertions(+), 1739 deletions(-) I'm curious what the latest on this patch series is. Is it abandoned, or is it still on your list to move forward with it? If it's abandoned, does that mean we've abandoned the idea of breaking ili9882t into a separate driver? From looking at things that have landed downstream in the ChromeOS kernel trees it looks as if additional fixes are getting blocked from being posted/landed because of the limbo state that this is in. -Doug
Hi, On Mon, Sep 18, 2023 at 9:19 AM Doug Anderson <dianders@chromium.org> wrote: > > Hi, > > On Mon, Jul 3, 2023 at 6:21 AM Linus Walleij <linus.walleij@linaro.org> wrote: > > > > This is two patches fixing things I would normally complain about > > in reviews, but alas I missed this one, so I go in and fix it up > > myself. > > > > Discovering that a completely unrelated driver has been merged > > into this panel driver I had to bite the bullet and break it out. > > I am pretty suspicious of the other recently added panel as well. > > > > I am surprised that contributors from manufacturers do not seem > > to have datasheets for the display controllers embedded in the > > panels of their products. Can you take a second look? > > > > Signed-off-by: Linus Walleij <linus.walleij@linaro.org> > > --- > > Changes in v3: > > - Rebase on drm-misc-next > > - Convert the two newly added Starry panels as well. > > - Break out the obvious ILI9882t-based panel into its own driver. > > - Link to v2: https://lore.kernel.org/r/20230615-fix-boe-tv101wum-nl6-v2-0-457d7ece4590@linaro.org > > > > Changes in v2: > > - Fix a missed static keyword > > - Link to v1: https://lore.kernel.org/r/20230615-fix-boe-tv101wum-nl6-v1-0-8ac378405fb7@linaro.org > > > > --- > > Linus Walleij (4): > > drm/panel: boe-tv101wum-nl6: Drop macros and open code sequences > > drm/panel: boe-tv101wum-nl6: Drop surplus prepare tracking > > drm/panel: ili9882t: Break out as separate driver > > drm/panel: ili9882t: Break out function for switching page > > > > drivers/gpu/drm/panel/Kconfig | 9 + > > drivers/gpu/drm/panel/Makefile | 1 + > > drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 3037 ++++++++++-------------- > > drivers/gpu/drm/panel/panel-ilitek-ili9882t.c | 759 ++++++ > > 4 files changed, 2067 insertions(+), 1739 deletions(-) > > I'm curious what the latest on this patch series is. Is it abandoned, > or is it still on your list to move forward with it? If it's > abandoned, does that mean we've abandoned the idea of breaking > ili9882t into a separate driver? > > From looking at things that have landed downstream in the ChromeOS > kernel trees it looks as if additional fixes are getting blocked from > being posted/landed because of the limbo state that this is in. I presume Linus is busy or otherwise indisposed. So I guess we have two options here: a) Cong Yang can post any relevant fixes to the existing "monolithic" panel driver so that we can get them landed and at least get things fixed. - or - b) Cong Yang could take over all or some of Linus's series and post new versions of it, addressing feedback. I would tend to say we should go with "a)" because I think Linus needs to be involved in some of the cleanup discussions. -Doug
On Tue, Sep 26, 2023 at 11:49 PM Doug Anderson <dianders@chromium.org> wrote: > > I'm curious what the latest on this patch series is. Is it abandoned, > > or is it still on your list to move forward with it? If it's > > abandoned, does that mean we've abandoned the idea of breaking > > ili9882t into a separate driver? > > > > From looking at things that have landed downstream in the ChromeOS > > kernel trees it looks as if additional fixes are getting blocked from > > being posted/landed because of the limbo state that this is in. > > I presume Linus is busy or otherwise indisposed. Sorry I was looking for the branch with my patches and I have it somewhere not ordinary :/ Originally I shelved it because I got requests to do additional patches to the driver: https://lore.kernel.org/dri-devel/CAD=FV=Xkr3Qpd8m_6Xta_2jL_ezbxsmMyarbKXTXL+UJLG9xNw@mail.gmail.com/ To do measurements about binary code size in object files, and if it does, then I need to invent new sequence macros (IIUC): https://lore.kernel.org/dri-devel/CAD=FV=Wju3WS45=EpXMUg7FjYDh3-=mvm_jS7TF1tsaAzbb4Uw@mail.gmail.com/ So I just didn't have time for that extensive rework of the driver. It's good feedback, but I just wanted to make the situation a little bit better, and perfect is the enemy of good (TM). > So I guess we have two options here: > > a) Cong Yang can post any relevant fixes to the existing "monolithic" > panel driver so that we can get them landed and at least get things > fixed. > > - or - > > b) Cong Yang could take over all or some of Linus's series and post > new versions of it, addressing feedback. Either works for me, I would prefer b), Cong is welcome to adopt the patches if he/his employer want to. Go ahead! We can't really let this one-size-fits-all driver go on like this. My main concern with the "boe-tv101wum-nl6" driver is that it can be renamed "cromeos-hackfest" at this point because it becomes hard for any other system to reuse the panel drivers, the typical example would be a system using say ili9882t but with a different init sequence or something, why would they want support for 9 unrelated panels compiled in? The condition that these drivers should be related to the original panel that gave name to the file has seemingly been dropped long ago. It looks like the drivers only share the power lines (avdd, avee, pp3300, pp1800) then this can be broken out to a helper library. But I am sceptical about that too. I doubt that the vastly different panels actually have exactly these these supply line names, I think it is actually names of the rails on the chrome machine board. And that is not how these regulators should be named, they should be named after the input name on the component. This is really hard to catch in reviews when we don't have datasheets so I'm not blaming anyone, but is this something that even needs fixing in the device tree bindings? (By deprecation and addition...) can we look into this? I would say can we at least agree that before we merge one more driver into this file, break out to subdrivers those that clearly have an identifiable display controller and is thus reusable? From my point of view I can just see the ili9882t so that's a good start. Yours, Linus Walleij
Hi, On Thu, Sep 28, 2023 at 2:42 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > On Tue, Sep 26, 2023 at 11:49 PM Doug Anderson <dianders@chromium.org> wrote: > > > > I'm curious what the latest on this patch series is. Is it abandoned, > > > or is it still on your list to move forward with it? If it's > > > abandoned, does that mean we've abandoned the idea of breaking > > > ili9882t into a separate driver? > > > > > > From looking at things that have landed downstream in the ChromeOS > > > kernel trees it looks as if additional fixes are getting blocked from > > > being posted/landed because of the limbo state that this is in. > > > > I presume Linus is busy or otherwise indisposed. > > Sorry I was looking for the branch with my patches and I have it > somewhere not ordinary :/ > > Originally I shelved it because I got requests to do additional > patches to the driver: > https://lore.kernel.org/dri-devel/CAD=FV=Xkr3Qpd8m_6Xta_2jL_ezbxsmMyarbKXTXL+UJLG9xNw@mail.gmail.com/ > > To do measurements about binary code size in object files, and if it does, > then I need to invent new sequence macros (IIUC): > https://lore.kernel.org/dri-devel/CAD=FV=Wju3WS45=EpXMUg7FjYDh3-=mvm_jS7TF1tsaAzbb4Uw@mail.gmail.com/ > > So I just didn't have time for that extensive rework of the driver. > > It's good feedback, but I just wanted to make the situation a little > bit better, and perfect is the enemy of good (TM). > > > So I guess we have two options here: > > > > a) Cong Yang can post any relevant fixes to the existing "monolithic" > > panel driver so that we can get them landed and at least get things > > fixed. > > > > - or - > > > > b) Cong Yang could take over all or some of Linus's series and post > > new versions of it, addressing feedback. > > Either works for me, I would prefer b), Cong is welcome to adopt > the patches if he/his employer want to. Go ahead! > > We can't really let this one-size-fits-all driver go on like this. > > My main concern with the "boe-tv101wum-nl6" driver is that it can > be renamed "cromeos-hackfest" at this point because it becomes > hard for any other system to reuse the panel drivers, the typical > example would be a system using say ili9882t but with > a different init sequence or something, why would they want > support for 9 unrelated panels compiled in? The condition that > these drivers should be related to the original panel that gave > name to the file has seemingly been dropped long ago. > > It looks like the drivers only share the power lines (avdd, avee, pp3300, > pp1800) then this can be broken out to a helper library. But I am > sceptical about that too. I doubt that the vastly different panels > actually have exactly these these supply line names, I think it is > actually names of the rails on the chrome machine board. And that is > not how these regulators should be named, they should be named after > the input name on the component. This is really hard to catch in reviews when > we don't have datasheets so I'm not blaming anyone, but is this something > that even needs fixing in the device tree bindings? (By deprecation > and addition...) can we look into this? > > I would say can we at least agree that before we merge one more > driver into this file, break out to subdrivers those that clearly have > an identifiable display controller and is thus reusable? From my > point of view I can just see the ili9882t so that's a good start. This sounds like a reasonable plan to me. What if Cong posted patches that broke this up into a separate driver for the distinct controller but otherwise didn't substantially reorganize it? In other words both the old driver and the new one would keep the "struct panel_init_cmd" until we get some resolution about the binary size issue. That would at least let us move forward... -Doug