Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3174445ybi; Fri, 5 Jul 2019 03:10:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJkVS77a3zHuVzFpEpx0UlQ6/UPBj4E6kugmWGtyb5kH9ZPrfj+xsi9LR+Jk+iyuGWFFxx X-Received: by 2002:a17:902:7781:: with SMTP id o1mr4429485pll.205.1562321406350; Fri, 05 Jul 2019 03:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562321406; cv=none; d=google.com; s=arc-20160816; b=h+x034vDdn1fpJmswhPKwpFNY0kCDOn9EoZW/4WlXSvZu5gRVZpmF5U9h79+VIEew6 pjQ2dPNxpJ15WpAL/lDfTV83Wk1fJUgc4hYyFgxQk0XibZpntWxJ0XavlvRKqxvPplHm QxkvqpnDonjp6Qk+jtcPxcML2Bku7nwu6qgCco6ExJ5m4g1uvhI2qMLfR4hKzx0KcS1a rjNGlvLloCQErjryouncUdm1VZB2aj7W20m0A4x/ruxTCn0Ft+iDvLzqjnMZxKBHO6vj ov9VK68zypkyKfMuDGx8gJUI5HJQiUWMk42RaE0wCTRIua/PW6EqGjodUxBgGh1PEYDF lH/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=sDrZie/RIz15BQiPm1KT0dSq58Ejjf210SOf12NLeuE=; b=SBDlyHowtgzaReEBbIzVmDd+yGRxPlU2AMawQkuH+W/pHDOxM+/TgIRN9OK7CuWAYz 6d/8qSxbIZAtAXf+zKXAEnEVqnSGQUP9pO+5/gnfL2P/SNOsvNu/GBwrkVzya/L7nwek NY12gQ53oFrxOM2VLHF5jzDl8FfUsktmq+i0ctAYPaS3+xdH9Zc7ZUCMN/3hVR9X5CFd n26xbyML76hu7k84fKwNn9FIhEB2GeYAIirbzBn/9DdoSjqLn9mHLmxdQcB635gbVZ8z QqiYGN0UWv+vpf+09fz2X9i9EpqyNqYklpP2yQODsiOIUtECeOxQj4DYBH4ZBAKHlPU8 EVVQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si8689972pgs.135.2019.07.05.03.09.51; Fri, 05 Jul 2019 03:10:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728492AbfGEKHw (ORCPT + 99 others); Fri, 5 Jul 2019 06:07:52 -0400 Received: from inva021.nxp.com ([92.121.34.21]:48564 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728456AbfGEKHu (ORCPT ); Fri, 5 Jul 2019 06:07:50 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 050C6200703; Fri, 5 Jul 2019 12:07:48 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 7D0882006F8; Fri, 5 Jul 2019 12:07:39 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 7BF38402EB; Fri, 5 Jul 2019 18:07:29 +0800 (SGT) From: Hou Zhiqiang To: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com, l.subrahmanya@mobiveil.co.in, shawnguo@kernel.org, leoyang.li@nxp.com, lorenzo.pieralisi@arm.com, catalin.marinas@arm.com, will.deacon@arm.com Cc: Mingkai.Hu@nxp.com, Minghuan.Lian@nxp.com, Xiaowei.Bao@nxp.com, Hou Zhiqiang Subject: [PATCHv6 28/28] PCI: mobiveil: Fix the potential INTx missing problem Date: Fri, 5 Jul 2019 17:56:56 +0800 Message-Id: <20190705095656.19191-29-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190705095656.19191-1-Zhiqiang.Hou@nxp.com> References: <20190705095656.19191-1-Zhiqiang.Hou@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current INTx process is clear all the recorded INTx after each one of the recorded INTx handled, this can result in potential INTx missing. This patch change it to only clear the handled INTx status. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa Acked-by: Karthikeyan Mitran Tested-by: Karthikeyan Mitran --- V6: - Splited from #10 of v5 patches, no functional change. drivers/pci/controller/pcie-mobiveil.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index a5549cf..3ab7d2e 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -372,9 +372,8 @@ static void mobiveil_pcie_isr(struct irq_desc *desc) dev_err_ratelimited(dev, "unexpected IRQ, INT%d\n", bit); - /* clear interrupt */ - csr_writel(pcie, - shifted_status << PAB_INTX_START, + /* clear interrupt handled */ + csr_writel(pcie, 1 << (PAB_INTX_START + bit), PAB_INTP_AMBA_MISC_STAT); } -- 1.7.1