Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1006609ybh; Tue, 10 Mar 2020 12:36:26 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtrV/3Pk2aiirg9vW+wHjqMTvfJKFvtDCZZiZ7Nm6A7XuqJZa0NFa8zCSi+E25Q/vciHUpi X-Received: by 2002:aca:cf0d:: with SMTP id f13mr2327227oig.162.1583868985911; Tue, 10 Mar 2020 12:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583868985; cv=none; d=google.com; s=arc-20160816; b=RLegrqRVey2UcEATtBK2SJaeWyj/gbyxcpdsriPlOq/A12t76e6bAiBQJZjPLHEWku lrXXJZPiiinKpgK91IWJjg70VXkVwrszmdBkFBmKlCW+e9hog2DbtPgdAbL/0li1MXf/ e44bvSnSeM0EOSTPxHsjmRd5ZTQ78fUinj++3BoXYtEj4DAGQnFWwWVH9PRp5MfmCtQa jy2ewPwG0+6Iew3lPnl/CKsZEq3Lzu4KejG/BQioC5om2QsIzWMPLW0g+qys7nY0HMza 5K+qpSxvWMo0E29Yy0n57rzGDblLsfiZVnvKdDcNpxmUKp8ro9AcdgK7PLHlJ4zHFW6n pDOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nKhwu1SDKAkcqVKvzUsWw/zCHl4XPJcIG2el7T4mPBQ=; b=0pksdW0b6mrRHaLUYjMvzZSw+aHgWtfo8i3RuDRMOjgT1WZ0PwGY0l8DTyrY2IS8LT itJf4sS8+aY4PyQC3gnXMmiBS6ubMGzXmoHOuRgqvWnMsorV4rcxbZJecc1xqv7Tk0WL 8rgpmvGM7M6PGH9+XbDIQ8XmabZxbXGlOuEyjQwCIzYmoj+cL0V2dfMnfw0ErQ4z/Bl6 SjNHZK41Dv4r9xH/HL1OemaOk8AG9OUvH1ErpKRVSV3aHi5WdSdRN5SuKHxAiOEvQvgq KhDXn90zhar+iwJ67B03qCfj6kuYimf3vIOyKY6a98i9lZSnfcOOubUHNxFBvZhI6eP9 NGdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=du2E0Fhb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si3637781otr.51.2020.03.10.12.36.03; Tue, 10 Mar 2020 12:36:25 -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=@linaro.org header.s=google header.b=du2E0Fhb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727211AbgCJTfc (ORCPT + 99 others); Tue, 10 Mar 2020 15:35:32 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34041 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727082AbgCJTfb (ORCPT ); Tue, 10 Mar 2020 15:35:31 -0400 Received: by mail-pl1-f196.google.com with SMTP id a23so3138176plm.1 for ; Tue, 10 Mar 2020 12:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nKhwu1SDKAkcqVKvzUsWw/zCHl4XPJcIG2el7T4mPBQ=; b=du2E0Fhb4mJ/inZzgatzWqnzcvQZXtDZgmruya9zV4Gw+nnSIHd76VYPct8N7RGUkg UZ7vTHKGlquKipcijaAe92RqfW3igKTUmJRFBWBAA7h+XfKwmD5MCHVMgeW40XLczZKi OIHqUD3+FqEpQilbduiaEaWRgtRo+SsgbHYwfd+DSKp74W8tZJiz/b04q91tSg5Tt7KO Mk7rMARWOxAT1Qsnja4Gjy7Bl9owEbVprtyZGmMNAZjlvx4dZeuHdY0R2D8QvIjz8gB5 tR3qEuKJsUjuy5KRr3kywpFl5nUUFLdDq/9GL5Mkv8KDkvljeeLA6pytKazAgqMlKeQw Dtow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nKhwu1SDKAkcqVKvzUsWw/zCHl4XPJcIG2el7T4mPBQ=; b=fq+/KKhUtAEA96E937wU/DMepOx+UDZ+NOaNz61/0iSTIDWUdWvPT/5sRXbzeOUsPd MJohfTIxrAXQsW6TlKelUrslO2wkFJZzqxNbGqoTy47ZUs5sECtyc39lYwiQgdH+i+n5 ey8U3vl5F1FSGNKYAzG+4MnLIT9lWIqJiYVkMZbfA87NyG6l9H4Zxp+uOSAQ9fH1DE6w g6BlKIADgeR9gfBnGi3uRq8+iUBvGFqGVq3HAWPCW3P5ahJY5GQfx44JBxfpzBn+zzQj hjEVKHgT2cXYKo9vyZKFC313h5/MYif46AQumm7Pvpaj6SIi5hFAXMGd74j5HDEyo/O5 DUDw== X-Gm-Message-State: ANhLgQ1ZnzxcsJJgxe52UJlcsrImNpN5N9Qy4v5RMeCdBdhIsEdgSa4m 4P4D6rY5CAqZxyIG5WKEJycoaA== X-Received: by 2002:a17:902:321:: with SMTP id 30mr23122871pld.130.1583868928567; Tue, 10 Mar 2020 12:35:28 -0700 (PDT) Received: from yoga (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id c207sm8147791pfb.47.2020.03.10.12.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 12:35:27 -0700 (PDT) Date: Tue, 10 Mar 2020 12:35:25 -0700 From: Bjorn Andersson To: Stephen Boyd Cc: Wolfram Sang , linux-kernel@vger.kernel.org, Andy Gross , linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, Alok Chauhan , Douglas Anderson , Brendan Higgins Subject: Re: [PATCH v2 1/3] i2c: qcom-geni: Let firmware specify irq trigger flags Message-ID: <20200310193525.GM264362@yoga> References: <20200310154358.39367-1-swboyd@chromium.org> <20200310154358.39367-2-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200310154358.39367-2-swboyd@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 10 Mar 08:43 PDT 2020, 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. > > Cc: Alok Chauhan > Reviewed-by: Douglas Anderson > Reviewed-by: Brendan Higgins Reviewed-by: Bjorn Andersson > 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 >