Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp814647ybh; Tue, 10 Mar 2020 08:45:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvSXOdJJ+b9d+S3E1j0P9MkMCI6a+gJ1+9/Ltd+mSjJBk+Ac5zo68G3TVbhh83NPpz8u+67 X-Received: by 2002:a9d:2c44:: with SMTP id f62mr18387092otb.7.1583855104139; Tue, 10 Mar 2020 08:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583855104; cv=none; d=google.com; s=arc-20160816; b=OPh2J3vRpVNRcK3hJp68pQPXA65QVd/lGu8g6UUzfO1EChZPuJGXMJ0C0LCuO86ZYT Yg8e9ZRBblED7rJS9pteSJAcGsTN55txbQmlBu62YmIBHmw+aCOxnfcSMT5fB081InYt BoPa2pbUNzpBvIXmBtTqxEUQh713/y3/M3xT8o/BgCByZ+oqq2fq0LrtwrSxHg0MuLGm wMkGAc/ryhuSbEStWVk6jxxzCg07hPyFYKJfgYIkkii1OvQsxc2bnEDs+pZVa3HKEROM 4l7otaP9rNU8ucM14jo/NEsN8l3BAlaDBvtWzL2et9afyIF3e3P1QT1RZnfPv9ewTfUV fcTg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s2p+EcI7L/A1DVC/29xLNkKoAlt6wKb9qgS0/TTntts=; b=gF9tUWjKCZJa95JVlX8D2mkkvkKOipwOu8dHv8m4PVFg1dpmYgdZYZDGCWb9DbTNKa E+P9nPAdgOlg172pnQCbH69LxBsxvcfI+ekv/arGzOW18uZDNPSZvcfMjrFpPANqKh1n FQqkWQvkc0my8dLqe95BUI7eueWBkxCoxcQods7tb3igN7ROFJaGtD0LnCSuxMw0i4HL lFtDdbTQ3o0mKVXHerol9iJRMpMN0TwKcmMPc9cizMMzcSaD7bU7LbM2gaWQdvAzz9dw 2avtJEZQEoauv4fMIr7bcl3NLlyMQ/Zvj/15kygGQXGzIkd+R1qAw9EILku0FgqXY+tq gTNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BdwMJy5M; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si7525435oto.22.2020.03.10.08.44.47; Tue, 10 Mar 2020 08:45:04 -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=@chromium.org header.s=google header.b=BdwMJy5M; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726558AbgCJPoD (ORCPT + 99 others); Tue, 10 Mar 2020 11:44:03 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36654 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbgCJPoC (ORCPT ); Tue, 10 Mar 2020 11:44:02 -0400 Received: by mail-pl1-f193.google.com with SMTP id g12so5585209plo.3 for ; Tue, 10 Mar 2020 08:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s2p+EcI7L/A1DVC/29xLNkKoAlt6wKb9qgS0/TTntts=; b=BdwMJy5ModIWnTns/Hmo1norAhn7toeZcwzhh1mWGCyafM1GB1p/TSRDLh5lDA5AC4 N9RZvDG2r3PGnocKoaWGq5iva3cEoYDsb4ZkhbFBLQ7r0p4A2ua/jWhd9T4jLVvsExqB 3ByWj2yt7V0RzcxEp/312/y+DaucUA2vIzpWg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=s2p+EcI7L/A1DVC/29xLNkKoAlt6wKb9qgS0/TTntts=; b=GR6uU74Hi6C61MhP7BjkZ/e45nq/UyN7CNlSJf1rufHbyi+lmJXuzP4HBjs8ZMp4Ui bsdjn8fAtbMsJmzjEANhb/XvgdjZcpmKmmcCFX35GD6d1M2matAfYbXFmjcrXu1AErJw md8PfGIguYcWlDAjaBxvGjxreSb2fniZ7X535II7K+oMS1FzmZWM3/Bvy4ycy/SeP2Hw KQj8gWT4Hnrbsi90+/Mpky1id3K1Q08/HiPnPh9VlFQb7U1zaZhBoStMG/jkC3W28Zyy 9xGTePoBzpoVN/NfUGZvrRIjQdgrR+lRGDeqoa8kjBY37CHbuieNHRCt5A44Cl7ITkxi wdww== X-Gm-Message-State: ANhLgQ05xF7NV6XNpEGeKoKZ2uEa+kjisARh1eFGogUMkCgCHIiEctgT Utudk/JMzhJydVuZHckVCpUqOA== X-Received: by 2002:a17:90b:4903:: with SMTP id kr3mr2329828pjb.3.1583855041356; Tue, 10 Mar 2020 08:44:01 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id m12sm2731090pjk.20.2020.03.10.08.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 08:44:00 -0700 (PDT) From: Stephen Boyd To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, Alok Chauhan , Douglas Anderson , Brendan Higgins Subject: [PATCH v2 1/3] i2c: qcom-geni: Let firmware specify irq trigger flags Date: Tue, 10 Mar 2020 08:43:56 -0700 Message-Id: <20200310154358.39367-2-swboyd@chromium.org> X-Mailer: git-send-email 2.25.1.481.gfbce0eb801-goog In-Reply-To: <20200310154358.39367-1-swboyd@chromium.org> References: <20200310154358.39367-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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