Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9558162rwd; Wed, 21 Jun 2023 08:52:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ65kA5VIxUAeejC1P/fy4rIBJvDKz4PwG4BITUyUvMQMi/z1Ujvk1MwjoO6v4mw9/TEmV7m X-Received: by 2002:a05:6808:20a7:b0:3a0:492b:f089 with SMTP id s39-20020a05680820a700b003a0492bf089mr2360950oiw.28.1687362752638; Wed, 21 Jun 2023 08:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687362752; cv=none; d=google.com; s=arc-20160816; b=kHXLlFh4P/7wSi4RXmFlDOFal2KyiPA0YaHUIG2eB6iY3fhjcXt358LHNH9+EfOUCl QqVzddTRhoaLONoXzfUPwRNPao+FhQo4c9wkQFXCTL0uWBgAgSyGEvfa+Qz/L2GNu+qA lNoucIW/+xOegUWw6cjvBGXKrxQWPj6DtgUBEA03ZClfTx5aetweICVbjneI8ltIkFfx BJMlJf7NlSfsyo1nyNGRnRS6zkLtkZRza/Xcy3pOy7LWjDa6EM5Goo2SBqpV/usdiiKv hqFTILRJ1bdTo8Vs0/IOMUm8qT6JrfXXAfPpw4jTNpPN50rpw9ElssyXITB+I3hxaknz nV9g== 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=3pxYvZE9qt2zn4FI6+g2LcNJOhg8u1hzKiWBjeT5xgA=; b=c+vCmaAZruURJdi3N3BRZUFXcpAYXkjhGKIwbjQ1KAe/NEwgMlqEYiKq/mWDsnB/BN 7mz6cpg2IcVpQlPB3f4lDU2+oqSFZrTPnfYZ2nQMw9SVQA7QTv3PaTqzYqwNOsDVwrnc mU0qCGFJjHdKlnr8VFPu8jnExbggIsnUQHgATFVFXw4kCH0veZxBhlep+OJO5FQ750Jb kHzoimk8cl8GIHihZ7L++ZoxDbvAll3NwNIqUuXNhSe6VcSlyHc1xvUq5f4w+IUJT8sv 0ILe4Af6c8ZMLxHQK98IkoXwcHfC9pg2J3z6xYpQz5tEw0Ji4+voXlYa/5ppBWGFIrMe D6iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jLLq+mRH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i30-20020a63585e000000b0054fe07d2f41si4152106pgm.894.2023.06.21.08.52.20; Wed, 21 Jun 2023 08:52:32 -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=@gmail.com header.s=20221208 header.b=jLLq+mRH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233231AbjFUPNj (ORCPT + 99 others); Wed, 21 Jun 2023 11:13:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232820AbjFUPNU (ORCPT ); Wed, 21 Jun 2023 11:13:20 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0313295D; Wed, 21 Jun 2023 08:09:13 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-25ee8d84b4fso3236965a91.0; Wed, 21 Jun 2023 08:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687360148; x=1689952148; 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=3pxYvZE9qt2zn4FI6+g2LcNJOhg8u1hzKiWBjeT5xgA=; b=jLLq+mRHkzHrwYqjN9UVIXbIqiZoTocAuDQkY5eFDqz84bqMoDaYJvcq4QX/1BNStp P5TiEJ5fSyOL//D3/jDBRJz8bxW6qM+OFP2V17Gnf/5hHnpqyRF8SzWp8A6+j3xP+Vj8 /DaiyEPnNinUC3iPGxWHuHYdN7KMTZ7oA8spFcbTv4COud00lhujxlZeAkmvbrFfxm9p j6bUI2z4lB2sUyf+0HVFKMJPTEfrbbO7hilZbFwqLMK9AY6urnmVc3zi1WETKzmb8b+g LK2jkxrTL0ulvH3501pSHzpjlW3jDZ8vucO0tRfaLUgULfHmNhrAYTsN9T+0ySD3JQgH vdAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687360148; x=1689952148; 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=3pxYvZE9qt2zn4FI6+g2LcNJOhg8u1hzKiWBjeT5xgA=; b=CrCmykQRHbX0RMs6bdnAN/1K5RkkpcFPVdihAuGVodRrhl9odiULakl4+EFnyQn2gK u/r0yMgqDYuACs7KmWDljGFzljn5mCaNRh/pyKfGjiVQOeojC7y4IS6A5IczE8OjKnFC tlvgLJpphYbgbCS7Jxsbofqf5Nn5z40BTsNz4Ogl1AY5bfKgba/MOB3BOSDAtPybRz2k r6LmUb4mA2FF5uHQxM7Trq1ZbTD9ggKOQjJ02b+q/G179TBTm6QroK+YMQ9INGs/Axwm mTkPs8O1jwznbGyIhNNIIbD1LB7cS29NdaMeC32dyQ84THQQaao9ay1vqkKw6d8IojHq cltA== X-Gm-Message-State: AC+VfDyP5loyRrJoJ6YMHL09A8gZ1bJaeeFjcv0qIoKFNef5EFEanVLG T7PUMCBgdoqA8JWm0hmDtyYDNPvk5LaPn61cxQc= X-Received: by 2002:a17:90b:3e8e:b0:25e:ae28:ea64 with SMTP id rj14-20020a17090b3e8e00b0025eae28ea64mr16465969pjb.23.1687360148362; Wed, 21 Jun 2023 08:09:08 -0700 (PDT) MIME-Version: 1.0 References: <20230607151127.1542024-1-pavacic.p@gmail.com> <20230607151127.1542024-4-pavacic.p@gmail.com> In-Reply-To: From: Paulo Pavacic Date: Wed, 21 Jun 2023 17:08:57 +0200 Message-ID: Subject: Re: [PATCH v4 3/3] drm/panel-fannal-c3004: Add fannal c3004 DSI panel To: Linus Walleij Cc: neil.armstrong@linaro.org, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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: X-Mailing-List: linux-kernel@vger.kernel.org pet, 16. lip 2023. u 14:53 Linus Walleij napisao= je: > > On Fri, Jun 16, 2023 at 2:31=E2=80=AFPM Paulo Pavacic wrote: > > pet, 16. lip 2023. u 13:44 Linus Walleij nap= isao je: > > > > > > On Fri, Jun 16, 2023 at 11:57=E2=80=AFAM Paulo Pavacic wrote: > > > > =C4=8Det, 15. lip 2023. u 21:55 Linus Walleij napisao je: > > > > > > > > > > I doubt that the display controller is actually by Fannal, but I = guess > > > > > you tried to find out? We usually try to identify the underlying = display > > > > > controller so the driver can be named after it and reused for mor= e > > > > > display panels. > > > > > > > > Yes, of course, the controller is ST7701S. > > > > > > Hm did you try to just refactor > > > drivers/gpu/drm/panel/panel-sitronix-st7701.c > > > to support your new panel? > > > > Yes I have tried, but there are too many changes needed and I wasn't > > sure whether I would be breaking compatibility with st7701 based > > panels. > > For the community it creates a problem that now two drivers for similar > hardware need to be maintained, and that burden will land on the DRM > maintainers. For this reason it would be better if a joint driver could > be created. I will try modifying st7701, but that seems like a big task since currently st7701 crashes kernel (5.15) for me and I have seen suggestions to use raydium driver over st7701. Also I guess I should first read some more documentation and compare st7701 to st7701s. I currently can't reserve a lot of time for that. > > I am sure the users of the old driver will be willing to test patches to > make sure their devices keep working. A lot of modifications to st7701 are required. I believe it would result in a driver that doesn't look or work the same. e.g compare delays between initialization sequences of panel-fannal-c3004 and panel-st7701. I think it would be optimal to create st7701s driver and have special handling for st7701s panels. If there was a flag for whether panel is st7701 or st7701s it would end up looking like a mess. > > Yours, > Linus Walleij Thank you for your time, Paulo