Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31068772rwd; Thu, 6 Jul 2023 15:22:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlEe9MAmZIuOGmP8Z72Lfd1nN+3eLiLJEJH0VpFd61wN72i9Z9YquJiKDhB2VvxoVS8T4wp+ X-Received: by 2002:a17:902:f543:b0:1b8:b382:f6c3 with SMTP id h3-20020a170902f54300b001b8b382f6c3mr2950769plf.13.1688682120121; Thu, 06 Jul 2023 15:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688682120; cv=none; d=google.com; s=arc-20160816; b=YfCTxfYqswDh29nItWUyWNSYDoCGD9eAixBK6XSEUafyfA43/exr3Z99bSyTpw96L5 H8zxh7IOO42l+Et19cqHe48eOfcmuGiCY+Hfi75UEUQuEqWLKwKbNdSmKBqGSFcsVccp chM9+aAOo2gcsrQrdIa2uaSPURV1PKtHCL3rZJjr/h5dj5TmF61jmKY3+Yx7SboqhYsQ 3foLzABeoHGAtNKobhHbR+hknn016j80Q7pCFzvQz6/HCjxnqSENTl3xrP/gK20Qcm/s A6KZ7Qmi98kl0miNsLZU+Tvr+t0o+Tao0hYu6UbUivnaHAwntbUwVNXXfX4OK6zxcGta 3W/w== 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=hEParp9WLCAzJ3tEVRlPTLLmfvfF/hCapi/kGt1xYS8=; fh=+gphFHb/QHn6Kv91l344MCQnuW0OuunnWl3auaBg+VE=; b=roWX8/wCgTfGZH0EAkQuZlWzQ1fdp+0OJGbR8NYnFf9D92aqyLpHnYyhQwHh8L7qZL JM2a6hdCVsVq/fwH9WAUZDZ9dYle9zJXgcKEIB/cZKbZ1tmEyCNfSDL5xTm2sDiviJQO PMH37DOSplvnNrv+An3g/iSwCUVgoF6j1gvBmlUm3wHwLURdjVKO0nyl5pzAy85apD9z MmK9Vo0zn17AmTGhIfICYt2cQXP1r9X2dLSx8dIBA0ACa/tGUKA8Q4i6t7qoRBpNyKWB dIMIOoPdcTXgohxWPukDtzM6oNfLow+5pfY+QPhyWeoOi+q5lvjDBlYFwAOYVuCXlu1l cKyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="xiB/EdWa"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a170902b49600b001b87b716f87si2060057plr.329.2023.07.06.15.21.41; Thu, 06 Jul 2023 15:22: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=@google.com header.s=20221208 header.b="xiB/EdWa"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbjGFV6f (ORCPT + 99 others); Thu, 6 Jul 2023 17:58:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjGFV6e (ORCPT ); Thu, 6 Jul 2023 17:58:34 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06374E72 for ; Thu, 6 Jul 2023 14:58:33 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fbd33a1819so18045e9.1 for ; Thu, 06 Jul 2023 14:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688680711; x=1691272711; 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=hEParp9WLCAzJ3tEVRlPTLLmfvfF/hCapi/kGt1xYS8=; b=xiB/EdWarYX/DABsjTSbkGjKLUXIBA/on3IZ9C5asF3xRQs7MvPzZ8Yhkw7i6jQstE Y1NbNXGIdu/ToE2OjUzQPG5X4xID1vpsFXasYJyBzZHpwzwUKfSdrKhpaySPn+1SDuwN r+xv0JB8aQTdIjkXPjPlcjdCI/R2dVTzf4SDPIwXsRoaTMlkiAerr48tgWlkfpV/ZZTN Moy/gJeQkmODRoVFubt83Nfon1X5+S4K4sxpa/SGdYU1ukjlH0LEF3jIrfoKsTcGTx9+ FXjjAXBchIiKkAxtguMuKtFHHhNSUQLZNMdC+EuM6gRRlyjBP0pwHNI8vpypyaRpZy7q jJlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688680711; x=1691272711; 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=hEParp9WLCAzJ3tEVRlPTLLmfvfF/hCapi/kGt1xYS8=; b=Pg6DTZHkVtLJuXDY0OWZkdkq+QwJepwRKCpn+isA9TEdB5sniMmp78mTq55JkZgXc+ 4VxYlDp44nMOhc0MnPm+GPrpAup8J8xZxmc1THlcVQeG6WGFn+vOgOpuReaQ9Iwijr0Y Q/2GHOTMjzZzPPAKnUSrZ8nMa/EQm+3Tz+3zLnU09tZS5kwpbuCmC10AiFhxwboi+Fpw yEU7FO30WzFteQ4MKcdJsT27mqbTEkN9C2Z5QnkPpdGgSu9rX/IGWoHvMEJBzb0VJ2Es XF0IkFA+hu6Zr21NH6HgJ+lk8jn3Vu3lEr7JNkS0YZsEpSIYQNPA97HMzLOl+xrIsBPX rRag== X-Gm-Message-State: ABy/qLYSk61iMqkhE7K2+jfeNKG+AMBESa9JQQ/aKwT/QoMTSn03vTsA 9j3iXm1xxx6ZPULwm6rnZpWaWRrq8JgoZVfovdQjNw== X-Received: by 2002:a05:600c:46cd:b0:3f6:f4b:d4a6 with SMTP id q13-20020a05600c46cd00b003f60f4bd4a6mr7987wmo.7.1688680711257; Thu, 06 Jul 2023 14:58:31 -0700 (PDT) MIME-Version: 1.0 References: <1adda828-cf35-fb2c-6db5-f9ca91b5b62a@linaro.org> <20230525093151.2338370-1-yangcong5@huaqin.corp-partner.google.com> <20230525093151.2338370-5-yangcong5@huaqin.corp-partner.google.com> In-Reply-To: From: Doug Anderson Date: Thu, 6 Jul 2023 14:58:19 -0700 Message-ID: Subject: Re: [v4 4/4] drm/panel: Support for Starry-ili9882t TDDI MIPI-DSI panel To: Linus Walleij Cc: Cong Yang , neil.armstrong@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, sam@ravnborg.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, hsinyi@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jul 6, 2023 at 2:36=E2=80=AFPM Linus Walleij wrote: > > On Thu, Jul 6, 2023 at 11:25=E2=80=AFPM Doug Anderson wrote: > > > In my mind it's really a tradeoff and I'm happy to go with whatever > > consensus that others agree with. What I'm never super happy with, > > though, is changing the bikeshed color too often, so I'd be really > > curious to hear Sam's thoughts on the issue and whether he'd like to > > see this driver broken out into a dozen drivers. > > This is not question about a dozen drivers, to be clear. > > I just want to break out the drivers that have an identifiable > display controller that differs from the others, especially this one. > > The rest of the drivers inside of this boe driver I can't really tell, > they seem related? We don't know? > > So the Ilitek ILI9882t is an obvious break-out. I guess. To me it feels like the concept of breaking the driver into multiple sub-drivers and the idea of supporting ILI9882t more cleanly are orthogonal. You could still do your patch #4 and break out the page switching function without breaking up the driver. It feels to me fairly likely that many of the panels here are just as different from each other as the ILI9882t is from them. I guess it's not a dozen, but it feels like using the same "how different are they from each other" metric we'd end up with at least 5-6 new drivers. It seems clear to me that the panel that Sam first commented on is as different from the others in the BOE driver as the ILI9882t is. Certainly it has a pretty darn big unique command sequence for init... > For the rest, I guess I would be happier if the Chromium people > could use their leverage with vendors to muscle out the details > about display controller vendors and provide #defines for all > magic commands, we all dislike these opaque firmware-looking > jam tables. Yeah, I've grumbled about this with each new blob added. For instance: https://lore.kernel.org/r/CAD=3DFV=3DUo-7rFWGiJG0oJ0ydosA4DxhFqiWGrab1zoZyx= yPsOBg@mail.gmail.com/ Where I said: > I'm not really an expert on > MIPI panels but the convention of a big stream of binary commands > seems to match what other panels in this driver do, even if their > table of binary data isn't quite as long as yours (are all of yours > actually needed?) The problem is that it's hard for me to make a strong argument here when there is prior art of panels being supported with blob-sequences. In this case, I think you as an upstream developer have more leverage. I can help put pressure to make sure that upstream concerns are addressed, but I think it's on upstream to put their foot down and say that these blob sequences are not OK for new panels. In each case I landed a patch with a new blob sequence I tried to give the community time to respond and I tried to telegraph what I was going to do to make sure nobody was surprised... -Doug