Received: by 10.192.165.148 with SMTP id m20csp672158imm; Wed, 2 May 2018 07:02:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqQZZsRj8dlJr8S+m5dz7cNivjmyipvdiGi7AQlKd9poH/5zwG+Bg0Yp2c+O2yQ6rGVvo47 X-Received: by 10.98.224.76 with SMTP id f73mr19599069pfh.88.1525269731415; Wed, 02 May 2018 07:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525269731; cv=none; d=google.com; s=arc-20160816; b=a2TDE4qheN9YfRORg8FcLEnzpnoy4fP3YuuEK+tXZkGrPRdw375/V7Ome20qPlZG8l A1gd2NyJMxc56WFOPSIIFTZI84ZzgAurslndcd72u/W1fpFFzoca1g3oufY6gyBh0RNL Iz+t4EATGT67Ha202xwh5tAqBouf54jlvM/wz9Qtt6i5GIiumg3gx7ZbkSV75fGMX9OA k/vBLCoB0ZI4LyQsV1ikOKitSU4RJY4YxjaHCiE5xRVDW7fGYCfazXfYc64dc2aUCF43 esSPm42FgwAxdmze9wBVT7325w6aDvhWDSCBtcqblE2JDwr/hBVZH59F3lDeU3525gsX UJgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=NJxmKydc1Oy3aDaKf+7Q9fUx2NBWeCNCrdnMyOBtIBE=; b=PNa+2WGKm1C/z11acmPAB2zU0Z6XKtLIXxZUd7ms/0GDlEW+GJegFZNdO2UX3pBY0P 9YAQwYBv1NMxA/Oj7v7BE70d5b7EYA/cGdrxVhTPltJmK2TOGsXZB4Y9Q53vTfwpQYXG TtAIyJWZ0cDfbNiqUaUSm1FdSIppdN0qsmmFoIruZRvSQ7l7p4UJtggphFmFVpbH0qoM xDGnNfAkvPWFbHg3JRg6miUxtnDu5JMDqsY0r1xMxByPhlDjQFhN6okl5XJdZuh/Ye+l h234rZbG45vL8kSHFfhkRty2L/yT5tINEdm5uFIpQTCvH1XlFffOFn/zDuQuG/v8v0V/ Fl1w== 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 p3-v6si9537896pgv.577.2018.05.02.07.01.55; Wed, 02 May 2018 07:02:11 -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 S1751607AbeEBOB0 (ORCPT + 99 others); Wed, 2 May 2018 10:01:26 -0400 Received: from terminus.zytor.com ([198.137.202.136]:33817 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751036AbeEBOBY (ORCPT ); Wed, 2 May 2018 10:01:24 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w42E12Qj185192; Wed, 2 May 2018 07:01:02 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w42E11sa185189; Wed, 2 May 2018 07:01:01 -0700 Date: Wed, 2 May 2018 07:01:01 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Agustin Vega-Frias Message-ID: Cc: linux-kernel@vger.kernel.org, jason@lakedaemon.net, agustinv@codeaurora.org, tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, marc.zyngier@arm.com Reply-To: marc.zyngier@arm.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, agustinv@codeaurora.org, jason@lakedaemon.net, linux-kernel@vger.kernel.org In-Reply-To: <1525184090-26143-1-git-send-email-agustinv@codeaurora.org> References: <1525184090-26143-1-git-send-email-agustinv@codeaurora.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] irqchip/qcom: Fix check for spurious interrupts Git-Commit-ID: 1bc2463cee92ef0e2034c813d5e511adeb58b5fd X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 1bc2463cee92ef0e2034c813d5e511adeb58b5fd Gitweb: https://git.kernel.org/tip/1bc2463cee92ef0e2034c813d5e511adeb58b5fd Author: Agustin Vega-Frias AuthorDate: Tue, 1 May 2018 10:14:50 -0400 Committer: Thomas Gleixner CommitDate: Wed, 2 May 2018 15:56:10 +0200 irqchip/qcom: Fix check for spurious interrupts When the interrupts for a combiner span multiple registers it must be checked if any interrupts have been asserted on each register before checking for spurious interrupts. Checking each register seperately leads to false positive warnings. [ tglx: Massaged changelog ] Fixes: f20cc9b00c7b ("irqchip/qcom: Add IRQ combiner driver") Signed-off-by: Agustin Vega-Frias Signed-off-by: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: timur@codeaurora.org Cc: linux-arm-kernel@lists.infradead.org Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/1525184090-26143-1-git-send-email-agustinv@codeaurora.org --- drivers/irqchip/qcom-irq-combiner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/qcom-irq-combiner.c b/drivers/irqchip/qcom-irq-combiner.c index f31265937439..7f0c0be322e0 100644 --- a/drivers/irqchip/qcom-irq-combiner.c +++ b/drivers/irqchip/qcom-irq-combiner.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -68,7 +68,7 @@ static void combiner_handle_irq(struct irq_desc *desc) bit = readl_relaxed(combiner->regs[reg].addr); status = bit & combiner->regs[reg].enabled; - if (!status) + if (bit && !status) pr_warn_ratelimited("Unexpected IRQ on CPU%d: (%08x %08lx %p)\n", smp_processor_id(), bit, combiner->regs[reg].enabled,