Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1045833ybz; Fri, 17 Apr 2020 14:54:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLqVGeOzYLLM+DZszQ3ns01Y9uCZgccU4YtdqmJSwmbWYpcIgQcs4+hUD11nscCunufyNSG X-Received: by 2002:a17:906:9494:: with SMTP id t20mr4920241ejx.51.1587160468046; Fri, 17 Apr 2020 14:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587160468; cv=none; d=google.com; s=arc-20160816; b=SO4wf5MVVUYrMstTFVheVj/G/a9tNw05h9IFfEmB8uLQrEmZlR5By2enTuD+39fxsY sLJI/T6MhVsaY/ZJPhagwHFjj600bKzqLkCjcSA/S3GGka3zrRCtooHTB3cHDzE4MPr4 avSmN9ext1oYhw3WdBnh7Wa7kLyyjrKCbcPye7giz9UqLhsmv7uT3xFbaPAKIw1phzoU FZULtHXsS5dVvYBlunpE4os/0yGNsuJryl9ilsZO9QScA+zO5rLb4Zfi49j7BXEKucoZ C8VX6EgQQ5Z1OaQMBjIMrzS3CRtA3BTcF58bg39u8ULou7ynnWbSAc9ddw2tOzBlcwR4 mpsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4ZIurRzvKzhZuoAvzk1jdWnYdjdZhwYCtTWY/kwzyzc=; b=fOkDXibJhmeljzgIC1V7wZkSl3u1o2RrYcUHbEHF7+T6YXOnVfoQr5Jyfktzq+/B5w flRZprFyremruNUPOopTzYqwmxg9SdZcK4GIEnnxvn/rVV5d+gJMiaCzsDdViYrVKLt5 qq+ao1+j3X4qvKQNLE1rggXXkgAld68xddnbYSuRXKn20Je+n4jJz5NRckFy+2eAfnJL y7yyT7rNPWbopkWVNhgH1MD3mGWym/GSECsVac13x5GR23PwtH4CLGYsNDMF0kM4Hzg2 1n++frnLveSlqp8NqlwNPPZ4EV4X88rQudi57GHFggDrUfvGUSarzmDGEtj8cUcYMAgX pXHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MHHFmFfl; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce3si17786530edb.286.2020.04.17.14.54.05; Fri, 17 Apr 2020 14:54:28 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MHHFmFfl; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728402AbgDQVxG (ORCPT + 99 others); Fri, 17 Apr 2020 17:53:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728202AbgDQVxF (ORCPT ); Fri, 17 Apr 2020 17:53:05 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81261C061A0C; Fri, 17 Apr 2020 14:53:05 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id o127so4057526iof.0; Fri, 17 Apr 2020 14:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4ZIurRzvKzhZuoAvzk1jdWnYdjdZhwYCtTWY/kwzyzc=; b=MHHFmFflGHZyA2d+a2MGEW/nmBW/qkwy1pEjJjNIVx0DLkbEfA5uQGiN+YeqIu9IGQ gjkX85oS7YUx6MoTbSTQJGGLMZop4tAJIwi/LP73NSiTkHtyafiRbf8kpxh7QclX9ph8 Yc+OO6r0wSDWZEqSqSVen+xjO6bjAg7VM4zzEsfgYTys0OdPp2+h4gzAWXBWKsvsy65B 31Xr8p7AcOxf3dOxW5j8xhyFOvO66LHO1tqkHGQXwQ+tFFaxVzEGUOH8umsayWtukALW fmGFlCCPtaA4HvlpIp16CsOt6l4Ou2DBzVxl4yhWzcb0YEi363RJnr/JSY022CFbRY/w wQmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4ZIurRzvKzhZuoAvzk1jdWnYdjdZhwYCtTWY/kwzyzc=; b=cJME+b4oiQ5QqZyMaN6abiVr3p7+WhQ3EyR3nFtKiF0YUC7cTLbIjJe9X0tpYbfBMn ekJgtaq4BwC0FyfWY3wCkD5jsT9g11MxiW4bfkqHuqLqAQ47NSWpc57d3Zf8Dfm/CUB4 TAxez9X2CIhmCadr8b09MpQlPqCe4r3+9gSanoviTojtz0wVxeZfpkw9UdlcmNbPi3Le doYx3VwtuciDg6vMpJ0jH/osGiOSsD68W78+Cdh8WrIALRfGMxysLXO8txnb9gNXUNpU sD+g4zCrhnzihlnfWse3n3LszbZx/lmWISdnEyP8ojl0UH7PU1Rvg3yIqiDufz5dd1ol Pz+Q== X-Gm-Message-State: AGi0PuafbnFN6ZmleFpytDzvQ2sqCjLOBzTOBRFKOPE6sKN+t2pcU8+e g2fnqcnKSjRrU1duXHfqIQMrpALLy/DBYHScFqA= X-Received: by 2002:a02:c998:: with SMTP id b24mr5357266jap.23.1587160384789; Fri, 17 Apr 2020 14:53:04 -0700 (PDT) MIME-Version: 1.0 References: <20200417202859.35427-1-contact@artur-rojek.eu> <20200417202859.35427-3-contact@artur-rojek.eu> <3KAY8Q.NNI6X4F9QRIX1@crapouillou.net> <86BY8Q.C5XO8D57M7BI1@crapouillou.net> In-Reply-To: From: Andy Shevchenko Date: Sat, 18 Apr 2020 00:52:53 +0300 Message-ID: Subject: Re: [RESEND PATCH v5 3/5] IIO: Ingenic JZ47xx: Add touchscreen mode. To: Paul Cercueil Cc: Artur Rojek , Dmitry Torokhov , Rob Herring , Mark Rutland , Jonathan Cameron , Heiko Stuebner , linux-input , devicetree , linux-iio , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 18, 2020 at 12:45 AM Paul Cercueil wrote= : > Le sam. 18 avril 2020 =C3=A0 0:42, Andy Shevchenko > a =C3=A9crit : > > On Sat, Apr 18, 2020 at 12:18 AM Paul Cercueil > > wrote: > >> Le sam. 18 avril 2020 =C3=A0 0:13, Andy Shevchenko > >> a =C3=A9crit : > >> > On Sat, Apr 18, 2020 at 12:05 AM Paul Cercueil > >> > >> > wrote: > >> >> Le ven. 17 avril 2020 =C3=A0 23:59, Andy Shevchenko > >> >> a =C3=A9crit : > >> >> > On Fri, Apr 17, 2020 at 11:21 PM Artur Rojek > >> >> > >> >> > wrote: > >> > > >> > ... > >> > > >> >> >> + irq =3D 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. > >> >> >> + if (irq < 0) { > >> >> > > >> >> >> + dev_err(dev, "Failed to get irq: %d\n", > >> irq); > >> >> > > >> >> > Redundant message. > >> >> > > >> >> >> + return irq; > >> >> >> + } --=20 With Best Regards, Andy Shevchenko