Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3605320rdg; Tue, 17 Oct 2023 23:34:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkYH2Zi6ZQt0BN7TxI01jko2iOeyjtVZfHiftwuoKDaCddWxi0+oYr5oXWSX6IYsAfQaH3 X-Received: by 2002:a25:ed0d:0:b0:d9b:90d2:aadf with SMTP id k13-20020a25ed0d000000b00d9b90d2aadfmr4385185ybh.49.1697610897768; Tue, 17 Oct 2023 23:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697610897; cv=none; d=google.com; s=arc-20160816; b=u5bSar93IFDflsCbCpgWB88NokOXttPD9Osf5rilv0Nz9Q073yrS2O4wtwJ6o/FkT+ HZfeOkRldRslsScNUNMuNU09UVRm3ILPo2qqUGdXcWkt9eGyMWWboxQxZqLJOjPgyUqP 1cJL6QmTsqY5jUAds+pWw2I/QuoxPmgIOyKiDYmJGyBokoJWeppAtLX3Xtnns9ZvcxWr LEwA7Z7CPY7sSiQvCrA74l4c5Tn6fbZhAChvOYPOBOwqakbw+sPbIaYzXrAMSnXgk/TY ja4BYGaHqOqVzdbNYSMPzKXtuIoF6e50JBFFAzXaqhYw/tRKXLlOy/sLGEBg7fEu3Qew Ppag== 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=PcP2NMALckWLsH7C1A6sXx1DXX5SNNtRRVq5tKElmIw=; fh=eKgH90msqAoxzmU64YyDJEFTIC3KarnRoQGlOtFAGmg=; b=B8K6DLJz02Kze9tG0Btl9PzkmxDHnj606R/gbVa5AbeoDGi5hjY9ezoAH58mJInUwe nxXQ1ef92VlXRMy0Z4y2v4S3FGDz8aO2/xVMKCy4ist/SF6U9Z+s4JIV8OeRrY+rTxIp r/xIA6I5XSmscl0ZVAOetoDqxnkkvdeIDUD88eDrLa3LCoYwkf7l2c4atgNqQkpvWQdI n35WKdzY1/cUpCGzgq0mbVoI468ddM52ffy9e8Lxz2WEerkaGQBdweh31apkWyWbbyVn fJV9NmCBlBAit1O8CB1jd1KOerphtMZg6pNOM7F9VW7ilyQaOJcNVtarJvqQXt/OulQF RQQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZfxLUAvY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f4-20020a056a00238400b00690d935fa4csi3519151pfc.356.2023.10.17.23.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 23:34:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZfxLUAvY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 205C48024075; Tue, 17 Oct 2023 23:34:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344468AbjJRGeq (ORCPT + 99 others); Wed, 18 Oct 2023 02:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbjJRGep (ORCPT ); Wed, 18 Oct 2023 02:34:45 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43D5C93 for ; Tue, 17 Oct 2023 23:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697610839; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PcP2NMALckWLsH7C1A6sXx1DXX5SNNtRRVq5tKElmIw=; b=ZfxLUAvYDt+5SoNVjyTUpX6uWTCjtLi9B+O/JsK09MnTBJfwscvUkOQmyv08V31WtDBQfq cM1UNRZh0k7/NFFyoSY6pMr34/XKR5LJACaC+OEr1DN0EyLseWZZNc1ZPGHdrvPR8TkBJU +XZA2UZxmbiH2JkIKYfl8d58mPrkmAc= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-552-ScgNHt2pPw2BMLwGITvoIA-1; Wed, 18 Oct 2023 02:33:57 -0400 X-MC-Unique: ScgNHt2pPw2BMLwGITvoIA-1 Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-53e4a5807b8so3690276a12.3 for ; Tue, 17 Oct 2023 23:33:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697610837; x=1698215637; 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=PcP2NMALckWLsH7C1A6sXx1DXX5SNNtRRVq5tKElmIw=; b=jFXAn4KUm0MheMXdOO0GFaz046bP3wXOd3ArkMyOhqQ1N+KMM2UM7AXN0skGr1cAhf vPWsLkaDQV3JqxBU0BoFILWJWnZagRRBvWYZiCJV2iGZ9wDFV6TTlDywtx8ckf4HLvh+ 2VoxEUPzGhzn+57if8S/wZa5BAWn/A7gOm+OQuOlgo/P9tfFTjQhuvi5Jes5ucIhMB2T 8KdVvc9uAMUq5GuKh5QiK/mD5DY4jgiVPvutXkzttDnL9tG7sWI6bsIdGf6MdRWPQTy0 bUYnyaMSvaTQ/MaScfRKDPSyxr/ynW4pNI1i3o1vd9KrFPsdupeZo8OfufuxrNs8tbWp 61FQ== X-Gm-Message-State: AOJu0Ywmkbxw/OUNC4zZlKPaYebfOpPV9/I8CTj6kZINwbn0vLOtznB2 Q6qFjNJiMMuGAnDzixccX/DpTDmHjZyvy+6vcPPXynmpXOVS98qNiyHT8k+D9lfDUU6u65LNjx3 DQh71RhLiDqP5ayIQ1S3Nxc9QLboeAD++RRpQ/uh0 X-Received: by 2002:a50:c34f:0:b0:53e:94f8:85aa with SMTP id q15-20020a50c34f000000b0053e94f885aamr3777241edb.0.1697610836662; Tue, 17 Oct 2023 23:33:56 -0700 (PDT) X-Received: by 2002:a50:c34f:0:b0:53e:94f8:85aa with SMTP id q15-20020a50c34f000000b0053e94f885aamr3777219edb.0.1697610836279; Tue, 17 Oct 2023 23:33:56 -0700 (PDT) MIME-Version: 1.0 References: <20231017091900.801989-1-tylor_yang@himax.corp-partner.google.com> <6c7d9c92-7616-4fad-806e-44302c33b63c@linaro.org> <9e1233ce-1a6d-443d-873e-6efb3ed0207c@linaro.org> In-Reply-To: <9e1233ce-1a6d-443d-873e-6efb3ed0207c@linaro.org> From: Benjamin Tissoires Date: Wed, 18 Oct 2023 08:33:44 +0200 Message-ID: Subject: Re: [PATCH v3 0/4] HID: touchscreen: add himax hid-over-spi driver To: Krzysztof Kozlowski Cc: Doug Anderson , Tylor Yang , Tomasz Figa , jingyliang@chromium.org, poyuan_chang@himax.corp-partner.google.com, hbarnor@chromium.org, jikos@kernel.org, wuxy23@lenovo.com, conor+dt@kernel.org, luolm1@lenovo.com, robh+dt@kernel.org, dmitry.torokhov@gmail.com, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, poyu_hung@himax.corp-partner.google.com, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 23:34:55 -0700 (PDT) Hi Doug, Krzysztof, On Wed, Oct 18, 2023 at 8:07=E2=80=AFAM Krzysztof Kozlowski wrote: > > On 17/10/2023 23:41, Doug Anderson wrote: > > Hi, > > > > On Tue, Oct 17, 2023 at 10:08=E2=80=AFAM Krzysztof Kozlowski > > wrote: > >> > >> On 17/10/2023 11:18, Tylor Yang wrote: > >>> Hello, > >>> > >>> This patch series adds the driver for Himax HID-over-SPI touchscreen = ICs. > >>> This driver takes a position in [1], it intends to take advantage of = SPI > >>> transfer speed and HID interface. > >>> > >> > >> Dear Google/Chromium folks, > >> > >> As a multi-billion company I am sure you can spare some small amount o= f > >> time/effort/money for internal review before using community for this > >> purpose. I mean reviewing trivial issues, like coding style, or just > >> running checkpatch. You know, the obvious things. > >> > >> There is no need to use expensive time of community reviewers to revie= w > >> very simple mistakes, the ones which we fixed in Linux kernel years ag= o > >> (also with automated tools). You can and you should do it, before > >> submitting drivers for community review. > > > > We can certainly talk more about this, but a quick reply is: > > > > 1. If a patch really looks super bad to you then the right thing for > > you to do is to respond to the patch with some canned response saying > > "you didn't even do these basic things--please read the documentation > > and work with someone at Google to get a basic review". This seems > > like a perfectly legit response and I don't think you should do more > > than that. As explained below, the point here is not to do an internal review to come up with a final patch that has been signed-off by everybody. The point is to have a minimum of hand holding when a submission looks terrible. We have seen a bunch of (small) patches that have multiple signed-off-by when they are submitted for the first time, and it's perfectly fine. It often leads to a fast forward inclusion process. But in that particular scenario, the patches could have looked less rude toward the community by having a first internal swipe to say: - please run checkpatch before submitting - please use kernel coding style - please do not send a 9000 loc single patch (it got slightly better in v3, but still is way too big for anybody to make a correct review IMO). And if you prefer to do these things openly, I would have expected someone from Google to have at least said that publicly. > > > > 2. IMO as a general rule "internal review" should be considered > > harmful. When you're a new submitter then absolutely you should get > > some internal review from someone who has done this before, but making > > "internal review" a requirement for all patches leads to frustration > > all around. It leads to people redesigning their code in response to > > "internal review" and then getting frustrated when external > > maintainers tell them to do something totally different. ...then > > upstream reviewers respond to the frustration with "Why were you > > designing your code behind closed doors? If you had done the review in > > the public and on the mailing lists then someone could have stopped > > you before you changed everything". > > No one expects forced internal review on mature contributions. We talk > here about a first time contribution where already basic mistakes were > made: like not using get_maintainers.pl, not using checkpatch, not using > other tools and finally sending code which does not look like Linux > kernel code at all. Basically, what we want is a little bit of mentoring: "can I send this to the community? - well, there are obvious things that will be a problem". > > > > > 3. The ChromeOS team is organized much more like the upstream > > community than a big hierarchical corporation. Just as it's not easy > > for you to control the behavior of other maintainers, it is not > > trivial for one person on the team to control what others on the team > > will do. We could make an attempt to institute rules like "all patches > > must go through internal review before being posted", but as per #2 I > > don't think this is a good idea. The ChromeOS team has even less > > control over what our partners may or may not do. In general it is > > always a struggle to get partners to even start working upstream and > > IMO it's a win when I see a partner post a patch. We should certainly > > help partners be successful here, but the right way to do that is by > > offering them support. > > I don't know who is exactly core team, who is partner. I see > "google.com" domain, so Google folks are responsible for not wasting > time of the community. If Google disagrees, please change the domain so > I will understand that and not feel like Google wants to use us all. I > am fine and I understand if small companies or individuals make such > mistakes. It feels like a waste of our time if Google makes such > mistakes. Google's (Alphabet's) revenue for 2022 was 282 billions USD > and net revenue was 59 billions USD. > > > > > About the best we can do is to provide good documentation for people > > learning how to send patches. Right now the ChromeOS kernel docs [1] > > suggest using "patman" to send patches and I have seen many partners > > do this. Patman will, at the very least, run checkpatch for you. Our > > instructions also say that you should make sure you run "checkpatch" > > yourself if you don't run patman. If people aren't following these > > docs that we already have then there's not much we can do. > > > > > > So I guess the tl;dr from my side: > > > > a) People should absolutely be posting on mailing lists and not (as a > > rule) doing "internal review". > > > > b) If a patch looks really broken to you, don't get upset and don't > > waste your time. Just respond and say that you'll look at it once it > > looks better and suggest that they get a review (preferably on the > > mailing lists!) from someone they're working with at Google. The problem is that the form of the very first submission looked terrible, with a single patch of 9000 changes. It was even rejected by the mailing list. I think I understand why this happened, but if that patch is not split in functional simple logic blocks, there is no way we are going to review and merge this. Anyway, many thanks to Krzysztof for trying to review the code, which I dropped already from v1. Cheers, Benjamin