Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2654979ybz; Sun, 19 Apr 2020 06:35:20 -0700 (PDT) X-Google-Smtp-Source: APiQypIU9whA9hZobdvu0qBIaCjcRu+W+Vb+gGEHHWcy6EzX0GcUHiHQWhQ0+PLEvGIO/8onH9pl X-Received: by 2002:a50:9e2a:: with SMTP id z39mr10772762ede.178.1587303320632; Sun, 19 Apr 2020 06:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587303320; cv=none; d=google.com; s=arc-20160816; b=L+AHGMxLWSViIBBy2NVpd46s2I/kn0jq2+5E+l6+HNM7zFjZKBCP/alJbRtiVs4T7u imVyepNkEz0CsDO6btFBe/KZ4xVFn0+rUPxl3FquUh/aPwQeqLeuKlKFuzlj3keMnzVT /x7HX7B3EQS9wpoivD1RJN0mFRsVoq3YbQI0rnpY3tDjjYCER/0NI2NiYPWyCN3RSNNf 2t/gCW0JNOJ2H9VixnItkbE7x9j8WsDh0DyY7cm5qoaPklyw/yR0VPCscCXa0DkoKX0p knl81SO6V2pcMfH1ydZIl3ZfVYoXTE70/uxykGjHMjSU+SeNDKQ9GCrPas5eAxdNH/rp 56QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=T1dFMm1+bjeY0xh5QPkSVyC1XucQ/RTKFMJAHAP/Vho=; b=mCfCTErkYTtwoXxO/ccEiPyk5ymZknCx3Wb7InIUl5hU3SvsVk4peMm7af6a+1ug5U BuzqUaSHO+KNo+40zXfzbLeSWvadqVTkH+mBFsqOBFAj5dGNE5CyDYrrcGIO1URTFcvy 6xPgYwuPcH2JoBxfpHaHXSQq0KpV6OEPcorzO+VEy2/JAGUvaLCCRt2lnICjFMF7dmRD la5tj67q+kKXs0ltxW33L1OUD0/APEIX9qFvU0aWxYJNC9zbD6pDelGynCOxvhE2kJPJ YOQ3gpW252o7/5ctjnZSBGS5q0T4moa51dlr25/6a+9KY03f0FCxgew8waFKpMwcEP+A Ycww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id aq18si18362624ejc.201.2020.04.19.06.34.57; Sun, 19 Apr 2020 06:35:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726115AbgDSNcA (ORCPT + 99 others); Sun, 19 Apr 2020 09:32:00 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:41203 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbgDSNcA (ORCPT ); Sun, 19 Apr 2020 09:32:00 -0400 Received: from webmail.gandi.net (webmail15.sd4.0x35.net [10.200.201.15]) (Authenticated sender: contact@artur-rojek.eu) by relay10.mail.gandi.net (Postfix) with ESMTPA id B7F79240003; Sun, 19 Apr 2020 13:31:54 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sun, 19 Apr 2020 15:31:54 +0200 From: Artur Rojek To: Ezequiel Garcia Cc: Andy Shevchenko , Paul Cercueil , Dmitry Torokhov , Rob Herring , Mark Rutland , Jonathan Cameron , Heiko Stuebner , linux-input , devicetree , linux-iio , Linux Kernel Mailing List Subject: Re: [RESEND PATCH v5 3/5] IIO: Ingenic JZ47xx: Add touchscreen mode. In-Reply-To: References: <20200417202859.35427-1-contact@artur-rojek.eu> <20200417202859.35427-3-contact@artur-rojek.eu> <3KAY8Q.NNI6X4F9QRIX1@crapouillou.net> <86BY8Q.C5XO8D57M7BI1@crapouillou.net> Message-ID: <2ac495eef8143f2339b3e2a3eef24b27@artur-rojek.eu> X-Sender: contact@artur-rojek.eu User-Agent: Roundcube Webmail/1.3.8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ezequiel, On 2020-04-19 14:54, Ezequiel Garcia wrote: > On Fri, 17 Apr 2020 at 18:54, Andy Shevchenko > wrote: >> >> On Sat, Apr 18, 2020 at 12:45 AM Paul Cercueil >> wrote: >> > Le sam. 18 avril 2020 à 0:42, Andy Shevchenko >> > a écrit : >> > > On Sat, Apr 18, 2020 at 12:18 AM Paul Cercueil >> > > wrote: >> > >> Le sam. 18 avril 2020 à 0:13, Andy Shevchenko >> > >> a écrit : >> > >> > On Sat, Apr 18, 2020 at 12:05 AM Paul Cercueil >> > >> >> > >> > wrote: >> > >> >> Le ven. 17 avril 2020 à 23:59, Andy Shevchenko >> > >> >> a écrit : >> > >> >> > On Fri, Apr 17, 2020 at 11:21 PM Artur Rojek >> > >> >> >> > >> >> > wrote: >> > >> > >> > >> > ... >> > >> > >> > >> >> >> + irq = platform_get_irq(pdev, 0); >> > >> >> > >> > >> >> > Before it worked w/o IRQ, here is a regression you introduced. >> > >> >> >> > >> >> Before it simply did not need the IRQ, which is provided by the >> > >> >> devicetree anyway. No regression here. >> > >> > >> > >> > Does it work without IRQ? Or it was a dead code till now? >> > >> > For me it's clear regression. Otherwise something is really wrong >> > >> in a >> > >> > process of development of this driver. >> > >> >> > >> Nothing wrong here. The IRQ was not used by the driver for the >> > >> functionality it provided before. It is required now to support the >> > >> touchscreen channels. >> > > >> > > This is exactly what's wrong. >> > > Previous DTS for my (hypothetical) case has no IRQ defined. Everything >> > > works, right? >> > > Now, due to this change it breaks my setup. Don't you see the problem? >> > >> > The IRQ has been provided by every concerned DTS file since the >> > introduction of this driver and the related bindings, even though it >> > was not used by the driver. >> >> Can you speak for all possible DTSs/DTBs in the wild? >> Okay, in any case it will be problem of maintainers and yours if >> somebody complains. >> I'm not going to push this anyway -- your choice. >> >> But I see a (potential) regression. >> > > So, there are a few things to keep in mind here. > > Let's abstract ourselves from this specific driver > for a minute. > > First, and just as Andy pointed out, we can never be fully > sure about DTBs out there. These could be out of tree, > so out of our control. By introducing a new requirement > we break them, which may be seen as a regression. > > Second, the interrupt is not required as per > current mainline bindings/iio/adc/ingenic,adc.txt, > so it is perfectly legal for users to not have an interrupt > specified. > > Now, back to this case, I think we can get away with this > change, provided this hardware is not that widespread > among developers/users that follow upstream closely. > > I suspect anyone developing a serious platform > with this SoC is most likely using some vendor kernel. > > If that is not the case, i.e. if you have users _actually_ > using this upstream driver, then we should consider > making the interrupt optional instead of required. > > Or we can also just break it and hope nobody > complaints. > > BTW, this series looks great and I'm happy > to see JZ47xx activity :-) > > Arthur: perhaps you can consider converting the txt dt binding > to yaml? Sure, it will come with v6 of this patchset. And this time I'll make the `interrupts` property required :-) - Artur > > Cheers, > Ezequiel