Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp262326lqg; Thu, 11 Apr 2024 01:51:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkKS2Lc13v1GyCn3mm/zUTrrWTHHToo3DJPcWO5cCsfRY11ZkHXqhr3JyYJFnjp7xCn+Toh2xDUjfq8nBlS8LT3YDkQUId37fXq09IWA== X-Google-Smtp-Source: AGHT+IHzXGCh+tcU+l9kz99oIN4VAZh8k81NkUSL1GB/qQSd1dm3wffsKcrZUKu30S7VJ4CR6E13 X-Received: by 2002:a05:6a00:2d20:b0:6ea:f351:1df9 with SMTP id fa32-20020a056a002d2000b006eaf3511df9mr5776574pfb.23.1712825512832; Thu, 11 Apr 2024 01:51:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712825512; cv=pass; d=google.com; s=arc-20160816; b=WAP9DPtW9bAbmV4X2HEMNg0YrJlshALg+j60nHv+ORlWNJYQJIaRijS54ugE01aEV/ fYSc1NrqED5QFhJ9mVdpTRTd608VqcMr3PVatKje5rPlhslAJpu+qBG7qJ87WTjmS9sP skm6+PBwAOUrLdPGLB7QJTNZrIt9p9H5/U1r5Cqwg54G8f2sKh4UfG11DZa04IoKywVG hxRyyaeRp7/elbxSCOJ9rvYLVjCfflaEqBhw2l1fbWizPv3AFA5yJG++b62Ke7+nccVX lMRt8VAgG5XSNKDIWEH7bcF7tK6pjBuFyULp0wXYzMYtZFNRAUJZVdYC59nYeA7BJ1nI OxBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=edjaUEw2uJ66Vq5BGBZMcM3KK3F8anEzW+NtxKo9Ndw=; fh=UbH+7IMYDqUXOvk6+Cl6uciI4GrbE2Exy5kqFEdmtJM=; b=s6sZe1DLPlJY+y/ovUD1ILsE94K1W3o4YxsPJYx0RPbgNmE2WwQvEZmSpQn80Xzf9b FsdWxGfGs9tSVp3qYI8ms9HR3hgfISw8BugnkGnNXpInzLRCMr5e53d/rmMuyy1PO35n 1SrMfKwS6A0qMv+YenY+gERIajwsVUqykqpJFEkWfcHw/R8Crx/ta556BIZxVcO5HYiX bZ61x4KLs0afY3tRAeT1l3x7qwX9N2v29n8gPX2Fp2wy2HDlOHLyn1hu+ySu97PyVnSK ixA7YiKU9bGd93DeM8s8huF1jya5bIzX0LgoS2O0NMXsprGsIeZgCnXSmu0kdGYvYsjW J5ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sPNOyi0t; 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-140074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140074-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. [147.75.48.161]) by mx.google.com with ESMTPS id w2-20020a634742000000b005dcd2963f82si925474pgk.626.2024.04.11.01.51.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 01:51:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sPNOyi0t; 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-140074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140074-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 0359FB2689B for ; Thu, 11 Apr 2024 08:25:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 674F813E023; Thu, 11 Apr 2024 08:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sPNOyi0t" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (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 E78D213DB8D for ; Thu, 11 Apr 2024 08:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712823944; cv=none; b=FoGzHCmBPGWmMR60prymR/tAOnXKnb5LROP+LdNwGTAjVsrEZJT6gKPqC1ccUpwmqkkKja2Y6+A7oz/0/+yBDM9nBwIeTTTSwE5RtXKCOukJrPtVNaRhMlnxpbL7IXPoCvpfeXx78iBPsdx9d6W1eohh4enR91Q4BJPLrK3ghJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712823944; c=relaxed/simple; bh=nFRw7oi3NFSHVNf0hlNX8zBCL5+/1iE7ciSsVaEYvnk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SvIlfgvgtFdIi92QljURoWTSbD2F3lQ1+IwTMiCWPi2q4kIJh2HyD6SvrIT249Hn6lx+7KoERvh8AasUivWs0GHA6T2m9FIpyZme9K4PzbwzCDmmcB9cLadgGvhLtcIusPqpzWG44nAZ6DZTMmMEWzzQKTQ/ycAGXx29A0UHhgo= 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=sPNOyi0t; arc=none smtp.client-ip=209.85.128.181 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-yw1-f181.google.com with SMTP id 00721157ae682-617cd7bd929so70396407b3.3 for ; Thu, 11 Apr 2024 01:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712823942; x=1713428742; 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=edjaUEw2uJ66Vq5BGBZMcM3KK3F8anEzW+NtxKo9Ndw=; b=sPNOyi0tf2/UCYbD2yfgX2ivSUxlNV0Qs4LeinvNYSNoY79E7NfQ7JBMszCC/GoWte sFZA9chSzXWIJVOAy/Nqk8Ipcgoq7qjesAobToSSRFHRmuiV5ty6MnM0kOLu/INLnEW6 ctON0teuzE5TFZ7rjGcxMC1IAeMBxu73uwtOXup++Ku/IsFyZPyJTNbzLswBHyxv7Kil LlB8gyHb9bERwaL/gBkEfnK9M34fwMhDinQsKGMjAz5wLuua2E6mtSTwFy3np+L79W1x YdElWVSRoYB8tj1VtQQcclP01DV45nj+Rhimko8m1YPk3ob1H4GeWxHUoRC3sRFNSXtC SIOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712823942; x=1713428742; 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=edjaUEw2uJ66Vq5BGBZMcM3KK3F8anEzW+NtxKo9Ndw=; b=Hr0ljezcXbcFCa6q79OdjbVbUo7ugh0m7jipwe+DEcVTRYBIQhLNEm8JrTtbTqR4C2 YPnHx45M/2XwFNf4ypaRzZtnoyNCkVB5fS35uAUQWuaJ5O5IrFGTM30GuhNBxcfHBQWN Qc7RTu0l1oaATfS2e+q44olc/9mVSykZUvtaG3FBXIYnxNhuS8q3hYDUEr4rclf5aOdA iIeT72iTriR3OodHdPs8Z5f1Rc9GxewqlC+J8Tl2KmeVYKzup6XLlVPb2iYw9p3HQDDx KMxe7qNLUTJ/HjqIVJEtrQz0reiZKQuqHkCf2EO8MdNvb53O2mZclkfMHTKl/u+WKaV/ QMrQ== X-Forwarded-Encrypted: i=1; AJvYcCV0XQ9HrQ4NDixH4qRjM4SNSwzk4u2cgRne3jAm7RfLRhEkhyPoFC4B1Pv1a3Fb64QBs6kEbW9s5nYXLZMyLxfC578exsOrweU1eSRn X-Gm-Message-State: AOJu0Yx/bMEe8Enhjm1c5HmGtwbfhSAHxvBeq/DUaUE9giUCPKHAa9zT 89nTvBVgfSzouZP39ynr8wIAb+UGTXsbVq0CAZdNfV8rLnLHNwx22w2jryKbxccUT16X1cBxiAV znS5ybe+OI/pYhBPMCLSGCo3xAO+tqg3AOdAnyQ== X-Received: by 2002:a05:6902:2b0c:b0:dbf:23cd:c05c with SMTP id fi12-20020a0569022b0c00b00dbf23cdc05cmr7015891ybb.13.1712823941903; Thu, 11 Apr 2024 01:25:41 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240410071439.2152588-1-yangcong5@huaqin.corp-partner.google.com> <20240410071439.2152588-3-yangcong5@huaqin.corp-partner.google.com> In-Reply-To: From: Linus Walleij Date: Thu, 11 Apr 2024 10:25:30 +0200 Message-ID: Subject: Re: [PATCH v1 2/4] drm/panel: boe-tv101wum-nl6: Support for BOE nv110wum-l60 MIPI-DSI panel To: Doug Anderson Cc: Cong Yang , sam@ravnborg.org, neil.armstrong@linaro.org, daniel@ffwll.ch, airlied@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, 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 On Thu, Apr 11, 2024 at 9:40=E2=80=AFAM Doug Anderson wrote: > On Wed, Apr 10, 2024 at 12:15=E2=80=AFAM Cong Yang > wrote: > > > > The BOE nv110wum-l60 is a 11.0" WUXGA TFT LCD panel, which fits in nice= ly > > with the existing panel-boe-tv101wum-nl6 driver. Hence, we add a new > > compatible with panel specific config. > > I guess we have the same question we've had with this driver in the > past: do we add more tables here, or do we break this out into a > separate driver like we ended up doing with "ili9882t". I guess the > question is: what is the display controller used with this panel and > is it the same (or nearly the same) display controller as other panels > in this driver or is it a completely different display controller. > Maybe you could provide this information in the commit message to help > reviewers understand. I think at a minimum we need to split out any identifiable display controll= ers to their own drivers. Then what developers see is that the code sequence is very similar between two completely different display controllers so they have this urge to shoehorn several displays into the same driver for this reason. The latter is not good code reuse, what we need to do here is to split out a sequencing library, like if we had drivers/gpu/drm/panel/cmd-seqence-lib.c|.h with a bool Kconfig and some helpful symbols to do the same seqences in different drivers, so the same order can be obtained in different display controller drivers that would be great. I'm thinking something along the line of panel_seq_exit_sleep_mode(unsigned int delay_after_exit_sleep, u8 *cmd_seq_after_exit_sleep, unsigned int delay_after_cmd_seq, unsigned int delay_after_set_display_on); That will call mipi_dsi_dcs_exit_sleep_mode(), delay, send command sequence, delay, call mipi_dsi_dcs_set_display_on() and delay where any delay can be 0. This achieves the same goal without messing up the whole place, but requires some tinkering with how to pass a sequence the right way etc. Are Google & partners interested in the job? ;) Yours, Linus Walleij