Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp493488ybh; Tue, 10 Mar 2020 02:43:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtTtHDlMKvqRe9wSsh14pmxLyBr3D1ZBiw0cavlmu/Rz2NA3uApr6M6+7iTCtxIvhF6eUCZ X-Received: by 2002:a05:6830:18c2:: with SMTP id v2mr6905862ote.350.1583833420158; Tue, 10 Mar 2020 02:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583833420; cv=none; d=google.com; s=arc-20160816; b=p67S7QqjrCgcUZh4DHZo6BLXqObHvflJW4Oyaa9bVcVw+aVoLSjt9BhpTMNaThpssm OTAAufr8PQ2EBm+HDlZ1CrOCk1/FxFh3zEwc+3YNwPsEceJxtZiWCKaUMleGu5e4XX9F alZ2vCZOHz4m3SpUvCjJVN/mLj3tuJy8O9oPXUpipBoKV/Py3OICjtdREW5vIP/V97FB 1MeDO7ie49W9TNyZAOvI63H+vFzJRGgskCdBb1XPgbgvGPDnrRHxGhl04tlultLXYozC hMwDjAN37USte+jCbjkA1pnET2COmMImnG2I9eiIg3RVi+XL1RjLF9l8cNIFJGvKAMpw adiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JiZ4o0Tus2IHXUfjH59V+RLvKsMrM9vul3QjXA8uEe4=; b=FCSHtgQq2e9YnUNI+MqX4vh5Ad8aAJnUUOlnt33pKqEM1dYHyiYmpWOdbXf2Kz+nnj 0oPP6UA9O/msszXuwD+hj4dSaItjutm5O6QQeSzE6qL8C43xQGoe20jkskKxeqJ1vNE2 ozyhNg637zd4lp2QRVkf1vvySXil7ShCi9pN9FaLmbsWdnUiHI6iMqE9uNibC9d6aOr2 FHQwwnxbUipFCWcLWHu2JnqUrdf3UNHp5DjTnVhJxGfYxwOrdMOFPrRI/xlXdtg74V2N 9pyKCenwj2dfdtMwiNi/ec0oXnI6FX+U9pDcS+H8qToC//mDDO2Zo5p0REtlLhRZLtuC ZzFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y82si3486625oia.35.2020.03.10.02.43.28; Tue, 10 Mar 2020 02:43:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726402AbgCJJmD (ORCPT + 99 others); Tue, 10 Mar 2020 05:42:03 -0400 Received: from sauhun.de ([88.99.104.3]:46710 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbgCJJmC (ORCPT ); Tue, 10 Mar 2020 05:42:02 -0400 Received: from localhost (p54B33196.dip0.t-ipconnect.de [84.179.49.150]) by pokefinder.org (Postfix) with ESMTPSA id 6125C2C1EB6; Tue, 10 Mar 2020 10:42:00 +0100 (CET) Date: Tue, 10 Mar 2020 10:42:00 +0100 From: Wolfram Sang To: Stephen Boyd Cc: linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, Girish Mahadevan , Dilip Kota , Alok Chauhan , Douglas Anderson Subject: Re: [PATCH 1/3] i2c: qcom-geni: Let firmware specify irq trigger flags Message-ID: <20200310094159.GG1987@ninjato> References: <20200204193152.124980-1-swboyd@chromium.org> <20200204193152.124980-2-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JbKQpFqZXJ2T76Sg" Content-Disposition: inline In-Reply-To: <20200204193152.124980-2-swboyd@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --JbKQpFqZXJ2T76Sg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 04, 2020 at 11:31:50AM -0800, Stephen Boyd wrote: > We don't need to force IRQF_TRIGGER_HIGH here as the DT or ACPI tables > should take care of this for us. Just use 0 instead so that we use the > flags from the firmware. Also, remove specify dev_name() for the irq > name so that we can get better information in /proc/interrupts about > which device is generating interrupts. >=20 > Cc: Girish Mahadevan > Cc: Dilip Kota > Cc: Alok Chauhan > Cc: Douglas Anderson > Signed-off-by: Stephen Boyd All patches look good, but this one doesn't build because dev is defined in the next patch only. I also can't apply patch 2 before 1, so please rebase and resend. > --- > drivers/i2c/busses/i2c-qcom-geni.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-= qcom-geni.c > index 17abf60c94ae..3e13b54ce3f8 100644 > --- a/drivers/i2c/busses/i2c-qcom-geni.c > +++ b/drivers/i2c/busses/i2c-qcom-geni.c > @@ -549,8 +549,8 @@ static int geni_i2c_probe(struct platform_device *pde= v) > init_completion(&gi2c->done); > spin_lock_init(&gi2c->lock); > platform_set_drvdata(pdev, gi2c); > - ret =3D devm_request_irq(&pdev->dev, gi2c->irq, geni_i2c_irq, > - IRQF_TRIGGER_HIGH, "i2c_geni", gi2c); > + ret =3D devm_request_irq(dev, gi2c->irq, geni_i2c_irq, 0, > + dev_name(&pdev->dev), gi2c); > if (ret) { > dev_err(&pdev->dev, "Request_irq failed:%d: err:%d\n", > gi2c->irq, ret); > --=20 > Sent by a computer, using git, on the internet >=20 --JbKQpFqZXJ2T76Sg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl5nYOQACgkQFA3kzBSg KbaZ1Q//bEqT5U1ii86pzp09TaBI3QzrPc5uzlHnrBieB7gZ0pkytJrO1PSXyfXk kozWfv5urS2U0jj2jnRAD30N7jPTxmUw/2OUTM+pXWVAg1/gMEPJ61VDMfEpl8JX oLSbsw3nGVWHdcdI5RvjECqBYie4V969Qy++vo4CE3+Ojcf2LhEDT3rXMoM3sLt2 YYF+VhArh5D68UwJ+0XeP2A2XZNc08qFN+bpPcHr/vDpzfgkq5L5Es9NATAvUUww fNrq8qywVHlC9ylepuaqKBN/4YZVlwMSkiNZyKLhWkoWbINtnSadpHGd1oQ63J6P f0FTch18NjURIJchZaAeSpPsPQCAG9yl3TV0AZBv4MlzSvgOT2C+lezzDwT0oSG5 /ZnXHr/yNNeXxYOU2Ya3cQ32Uoo3g7hICuKnOiBDR1TNPnY/ymfeeKdZAMyqcgxj +sSs9OMf4l97luaFdoDuA0MzqdVV7ZY/n0tpsR6Zqpuz2ATW4PFc0zmaci3Kp1QZ 2Mfma5Zn5iUl12EjS1zS/VmFcFO5cAfBPWSBymeRFZ6fhP5sSdqSgaVsDP6eq0dS uWlLsjNPv9XI8na981XdbD5Wggdolxzpkyn48vgbLr/PBcrKfak9eUKevqRH/M5V EIDZe9RakIgD2VIvm+n+L3RzhS+FZ4fU0oOdhOdgCxjoilB6tKk= =T8mr -----END PGP SIGNATURE----- --JbKQpFqZXJ2T76Sg--