Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp269058ybh; Wed, 11 Mar 2020 00:31:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv+QRwzYJ9m3sWLSpBRlrv6vQ1CVVCcZpi70n8JQM1DDMngrczr6BHXDGsqWyluSdElk8c+ X-Received: by 2002:a05:6830:13c4:: with SMTP id e4mr1308401otq.139.1583911882144; Wed, 11 Mar 2020 00:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583911882; cv=none; d=google.com; s=arc-20160816; b=RR4ngpfYEJQPpCi4zMGmHfFmKwIzVhDfVKxRe8jo46JkROQDU1fI/rY9HRKzO18UN1 EeJyfHjvhQIXoKdCp/w9ajqvF2Z6sQodT0bJLoO4dPnbyfBSggeav0vua/vDCFUpjwMe 3ULWBXFQ6JkshMeElzbeADVjb7indZbsIKR48dAnDlE82eYD9OXbfangmCo/9B9QL+QA y+5zv6yDGiPgMYBRMC9Y6xe90kEaXap9270i+ZhAFfzEj6xqpenKlQv2zZPSK7rYI1/F Gk+ZElFGRkGuECRjsLnE/AIAhHvrP9gRkbDvBEEime9OCh87DItKCvDtC+BkGcGhTDGm 8o0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BPmOcXQ3X99zHwJqpB3nsuNuIevnyBfADR/rHEtNRP8=; b=Ib8ob5AtiVx3APllO5rc+tOlUl+cfTagqP6lpotvY0Eyzwncg6wRuYk+eGyUaUuD2R OtBVviD4aaoZjjUecSlJDYkb6D1YrKRJsNe3boG/yCipGqSXKX6fxuMadkabz10+8LUt Gtu7OBV2kq9FkkA8p7nT5Ni6V4H9RGAQ3KZdr2de0EBHRZ4TrmiJxF+N19eRl6q7YiNC meabmzDqd1evfazviS9SRaeySgeashRs/VjNyG3ovMhnRdk9WXRnXV1ZC8c4A8v+Yoy/ cfr2SgOQNOBJV+VtAfxUPm6y4/mGDYQwFjdgP9Ryv03D5sGpkmTLeoYztaKpEgF6MZDI 5dIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=0BNBnlt0; 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 d21si669239otq.72.2020.03.11.00.31.09; Wed, 11 Mar 2020 00:31:22 -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; dkim=pass header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=0BNBnlt0; 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 S1728468AbgCKHaU (ORCPT + 99 others); Wed, 11 Mar 2020 03:30:20 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:41530 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgCKHaT (ORCPT ); Wed, 11 Mar 2020 03:30:19 -0400 Received: by mail-ua1-f68.google.com with SMTP id l7so354783uap.8 for ; Wed, 11 Mar 2020 00:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BPmOcXQ3X99zHwJqpB3nsuNuIevnyBfADR/rHEtNRP8=; b=0BNBnlt0yW57VD8zwOmvzW2sMziTU7mHMcMb/HOT0kuqJeFVpOc5fUJ6z9I4fFzjcB HtH1k4B+xEpqyI2Q0sX9RTaK11jmWJh18wZtJamFmwhIs2JBzlf25q9B1Zq3iAO7UQaN 2oqkIsPspe2v/YbOo80/tyqJQDagTe6a+FkRZn0R73XKkTnZaF7793JlZ85CTjMpTdPf 1jV2RqUXIZphPLvicgDxaYlIw6wTBz7k5E533El1oCe7Owad7QXcRN+jP0Qmva8sgdXG YDctySDeLCpZimi6n1fsxU+B19JswHyXUTI9Q6rO2WkfHChuS0TCwoAWt2Jmsax5ukXl HvDw== 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; bh=BPmOcXQ3X99zHwJqpB3nsuNuIevnyBfADR/rHEtNRP8=; b=g6HpjVwKv1qZ+8Y+obmWxELNrEBaoV5l25jEBZraJiclNiE16JgKNGYOJ2ONotlets +MEDUrocwq8A8w06CFNM8CToyvJfMtN3M0TVM5mT3ugS8XyK1D7uXCiVXYqe47uqXbvQ zSvSYiZ0pJTsYIawium1dTTGVY6VjJGFSpPAnDHPf+iC1z1fyjpKgItSQH1K3YPAJgTL QbhtdkwMhmWvMMv6ycJXM3LRZOMT7lGCU0YaOMp7EL6D2qjvr8sKhjaDwveUb8PgqBdI mLb0REHYaF0oR0HEmv73FEdpV6NZeOSUrfdJ/ZLHZ/C82y0zvOXIAfO+5NgBFZHrIf6G 49vQ== X-Gm-Message-State: ANhLgQ3XGC0CCls2/fQUE2olvrvMMGhxkeNbdVq6Hyaldt6J5JbIG5bW agGTKfL4dBubUKmHhWY8KFPJv8sB8Hd4U7mO2zvYPg== X-Received: by 2002:ab0:7518:: with SMTP id m24mr806098uap.60.1583911817488; Wed, 11 Mar 2020 00:30:17 -0700 (PDT) MIME-Version: 1.0 References: <20200310154358.39367-1-swboyd@chromium.org> <20200310154358.39367-2-swboyd@chromium.org> In-Reply-To: <20200310154358.39367-2-swboyd@chromium.org> From: Amit Kucheria Date: Wed, 11 Mar 2020 13:00:00 +0530 Message-ID: Subject: Re: [PATCH v2 1/3] i2c: qcom-geni: Let firmware specify irq trigger flags To: Stephen Boyd Cc: Wolfram Sang , LKML , Andy Gross , Bjorn Andersson , linux-i2c@vger.kernel.org, linux-arm-msm , Alok Chauhan , Douglas Anderson , Brendan Higgins Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 9:14 PM 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. > Reviewed-by: Amit Kucheria > Cc: Alok Chauhan > Reviewed-by: Douglas Anderson > Reviewed-by: Brendan Higgins > Signed-off-by: Stephen Boyd > --- > drivers/i2c/busses/i2c-qcom-geni.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c > index 17abf60c94ae..4efca130035a 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 *pdev) > init_completion(&gi2c->done); > spin_lock_init(&gi2c->lock); > platform_set_drvdata(pdev, gi2c); > - ret = devm_request_irq(&pdev->dev, gi2c->irq, geni_i2c_irq, > - IRQF_TRIGGER_HIGH, "i2c_geni", gi2c); > + ret = devm_request_irq(&pdev->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); > -- > Sent by a computer, using git, on the internet >