Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp417612ybl; Wed, 11 Dec 2019 01:49:09 -0800 (PST) X-Google-Smtp-Source: APXvYqx9StCTY3Hmke/+Z/k8dQvhw+k3uZJ2PrkTRpBb4p78MyNK2QZkTylOX2t2IRTqN2aCkfXD X-Received: by 2002:a05:6808:50:: with SMTP id v16mr1954985oic.11.1576057749152; Wed, 11 Dec 2019 01:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576057749; cv=none; d=google.com; s=arc-20160816; b=zZZ4K9fZElyqezntA5eMFYh66lobnlbb+jD9uunpxr4y+9ZxV/n9PNCNH+wOVEaMQv O1+KG5bO0/jc9Q9GUut8LMcOYtIb67gemV8iu/Gc5XsqgCrhT6kYQJoNw5e/36U9n54J lzojBYxgU+VvrCYxi23pqege2yBdbX71+9nfJcOtUaKfUaPA0jLYhL6SDaGswAqwmexj nQjXfkNvNEEum8tSt1pdceaNm5Li+My0LNSk6MRmFDEvnGDs/Y7ugLx/0tIwFzprFmkB rylozIV/n4j9dpqFCVIMk50wqr+WyDMbae5pTZMIcrox5laKQ5oB5hidEnunYCSJ2T3w ZI0w== 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=Hiyz++TEh319hVLwAB2olZ/3C2yOLqYZVb+XY1KilQk=; b=gA32f6Vt3fZKPegOrIa6rZWCqkrV78g4SDtO2fXAjO9RUgT7/zVp+sxThaieS3/MTv mXlAmCAqdxXDgVuTsbpsnOFQOc9JIek3F7gpKy+7exGMoe9DzWozC+du9pCmGRlnbLKK t5JhBYfGD76dzW/asKGqOq9eBW/ylJRpC1Q9Q9e8ZFdp7FjOL4zGnrxVT/PrcF3HRX6l C7gev0dPYpMrft+j1ONoG9fF1mwJfzCPisDmi+If+a0PWvHlY1Eh8qJtPQ7FGGXPTZqI yLgWuY0qbntlYCN6mZJlNLpykYgvKnXjaJ0Bv9s6ovH5TFxBJ7uURWRTB/gNerard2nU B/3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=K0vTHkkD; 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 y14si724322otk.237.2019.12.11.01.48.57; Wed, 11 Dec 2019 01:49:09 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=K0vTHkkD; 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 S1728578AbfLKJrX (ORCPT + 99 others); Wed, 11 Dec 2019 04:47:23 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34735 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728401AbfLKJrW (ORCPT ); Wed, 11 Dec 2019 04:47:22 -0500 Received: by mail-qt1-f195.google.com with SMTP id 5so5750087qtz.1 for ; Wed, 11 Dec 2019 01:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Hiyz++TEh319hVLwAB2olZ/3C2yOLqYZVb+XY1KilQk=; b=K0vTHkkDqUMjwhEvBZKfN8nWO6Gq+mP3OWCdvbCptx81sFRmyUM0KgerbhqMu3jV9D vOopYWXNC+KrffHCt+N2do5gAuACQXozX80hAE5AzkIhp8yq19kVpkwxwihnMXyxPilH u/mKaVAIqS9LqgEcOFph1xFHHdxE0IyfHt1M2E4RQKGb3K5iQhR0NkHtFreeEsDqzbGB 5vyp+u5tbmDt5RdyuaaQHfLg/EVX/zMELgeM4SE1f2qiNEYJ7ek5BZ0DsyFVI1vR0jZY J/Rk3VdsWOyVdLRf7hHACSh1EtYjikBIN+QOM24GPj6T/GmjS+bQ2k4yh2AKc3SIEj/w PZFg== 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=Hiyz++TEh319hVLwAB2olZ/3C2yOLqYZVb+XY1KilQk=; b=WgVdYJb0IKrk6/cCBhE9e67O6uYVD+AEChCgpBnd1LFPNjBCnuhliM3mYYYCe3KfMo wlhTUaR0WX3FKGunLpv3UCZAUFQJpd2XpxYomX3cEak2u4FrZs+/wd2NoXYXASeIJcTz 2X08cPuARYdF0MiA/SNVFWv+DZHtRqrQrMwsjkjN3NPbCbnPGmloJptDAK5dES4mb+/y I8+7yxAmMC+OB44f00x4sJ+idDsyQ6AVEMjCdVKsahKku70NP8p1Cifnm1ebEbPR1a/a jEAWbBN2UuP9sNnzlt+hLr5fReCeyZFatKtn6e78s2ZAhpuTI1VSBKfTzIpfFgB+81n7 ifmQ== X-Gm-Message-State: APjAAAVKRZVupGPrGNjHhSAvg6X/QYdCu6X14AwJQCtrBO278M+LTf2Z 79PCfjU6h71bHviy92ezzrNMgvkf57BlIv4R9rugDg== X-Received: by 2002:ac8:5208:: with SMTP id r8mr1888782qtn.131.1576057642143; Wed, 11 Dec 2019 01:47:22 -0800 (PST) MIME-Version: 1.0 References: <20191209062749.26429-1-vigneshr@ti.com> In-Reply-To: <20191209062749.26429-1-vigneshr@ti.com> From: Bartosz Golaszewski Date: Wed, 11 Dec 2019 10:47:11 +0100 Message-ID: Subject: Re: [PATCH v2] gpio: pca953x: Don't hardcode irq trigger type To: Vignesh Raghavendra Cc: Linus Walleij , linux-gpio , LKML , Grygorii Strashko 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 pon., 9 gru 2019 o 07:27 Vignesh Raghavendra napisa=C5=82= (a): > > Don't hardcode irq trigger to IRQF_TRIGGER_LOW while registering IRQ > handler. IRQ/platform core will take care of setting appropriate trigger > type. > > Signed-off-by: Vignesh Raghavendra > --- > v2: > Drop explicit call to irq_get_trigger_type() as this is take care of in c= ore > code. > > drivers/gpio/gpio-pca953x.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c > index 6652bee01966..40e48f7d83bb 100644 > --- a/drivers/gpio/gpio-pca953x.c > +++ b/drivers/gpio/gpio-pca953x.c > @@ -770,8 +770,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chi= p, int irq_base) > > ret =3D devm_request_threaded_irq(&client->dev, client->irq, > NULL, pca953x_irq_handler, > - IRQF_TRIGGER_LOW | IRQF_ONESHOT | > - IRQF_SHARED, > + IRQF_ONESHOT | IRQF_SHARED, > dev_name(&client->dev), chip); > if (ret) { > dev_err(&client->dev, "failed to request irq %d\n", > -- > 2.24.0 > Patch applied, thanks! Bartosz