Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3173742ybi; Fri, 5 Jul 2019 03:09:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZFIDs90FD5LsGAOBZvKVTFxKiwDonmbk/3BUj52F1hVhNF9cMO943LoyhqQgNYsfMbFrp X-Received: by 2002:a17:90a:cf8f:: with SMTP id i15mr4261321pju.110.1562321366522; Fri, 05 Jul 2019 03:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562321366; cv=none; d=google.com; s=arc-20160816; b=iy4p1aa9EKMRbuBMZ2x6BGyDNS53z5IesWZ/2gB2AgfqLgdcTxhweNl159wjsGMc1z MGR7fEKAxo7mw5HRNrWu09sZdw7zBzgXet4HSLpcUrXOEKpUDvMCetHWoYfzgbkmPjXG UHjfrs/lD9YnyWXVosBsQSfirEHC9c2UPheIvgFYdsJbaDD7rwHfw64oU375N+eGrKVS VByLllSnWqrpkUjNDDwZDliK049tDxXfh0yoMdjOZmmETU0UTlGPME+0eE6V2zW9Nbcz SJQvtpnz7YIj+MRnSupr1w4i+tqf/P5lSsnmcLBcDG9OE8le7oi3eck+zN/X1LmYDBQx GGuA== 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=vzlKfpxxJX9na1jV8gGEMeksdhHNlsGB52x30Zhq9VM=; b=OQDQ0dFkMYTmEVaxbYfgVH/ahb/cLO5Whl3UVBbYy9HzXYKb7WnvlM8nuW2759THI9 2IjHTu+8qDb1RKkvEP6ovRSE5eY6chhcpiVZA042FjKZQp+HkaGJsZX1a7MXQKw95Rwc qAtXU6WFF1GpcoOieU9YpnlbeX0Ad7tAdH8BCD8R5kwBYk+qi304lVfKKERaoLgysg6R 1wHzYEnlIA44yM5VKWUzcIkv+3302nq6nwurJMbbXQiVJNU1ELHZV8AVAb9J+DmHEdSb 4XkRErUNoSS+XAw4VWnkg5e0j6GQJFUWVmMBHSIZdeXd/J0OdleR4lrZPzRaBn+J2ahM NdNg== 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 y71si8866047pgd.271.2019.07.05.03.09.11; Fri, 05 Jul 2019 03:09:26 -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 S1728573AbfGEKIW (ORCPT + 99 others); Fri, 5 Jul 2019 06:08:22 -0400 Received: from inva020.nxp.com ([92.121.34.13]:33142 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728330AbfGEKHf (ORCPT ); Fri, 5 Jul 2019 06:07:35 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A79651A0EA8; Fri, 5 Jul 2019 12:07:34 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 249E21A0EAB; Fri, 5 Jul 2019 12:07:26 +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 1820E40326; Fri, 5 Jul 2019 18:07:16 +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 20/28] PCI: mobiveil: Add the statistic of initialized inbound windows Date: Fri, 5 Jul 2019 17:56:48 +0800 Message-Id: <20190705095656.19191-21-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 code has only statistic for outbound windows initialized, but lack of inbound windows statistic. This patch is to add the statistic for inbound windows initialized. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Splited from #9 of v5 patches, no functional change. drivers/pci/controller/pcie-mobiveil.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index 76653d9..0560344 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -481,6 +481,7 @@ static void program_ib_windows(struct mobiveil_pcie *pcie, int win_num, csr_writel(pcie, pci_addr, PAB_PEX_AMAP_PEX_WIN_L(win_num)); csr_writel(pcie, 0, PAB_PEX_AMAP_PEX_WIN_H(win_num)); + pcie->ib_wins_configured++; } /* -- 1.7.1