From patchwork Thu Aug 18 13:18:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Pinto X-Patchwork-Id: 9287749 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 748F56086A for ; Thu, 18 Aug 2016 13:21:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 666052922D for ; Thu, 18 Aug 2016 13:21:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A9C32922F; Thu, 18 Aug 2016 13:21:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C63EA2922E for ; Thu, 18 Aug 2016 13:21:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945958AbcHRNVB (ORCPT ); Thu, 18 Aug 2016 09:21:01 -0400 Received: from smtprelay4.synopsys.com ([198.182.47.9]:48608 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1947064AbcHRNVA (ORCPT ); Thu, 18 Aug 2016 09:21:00 -0400 Received: from dc8secmta1.synopsys.com (dc8secmta1.synopsys.com [10.13.218.200]) by smtprelay.synopsys.com (Postfix) with ESMTP id A134124E15BB; Thu, 18 Aug 2016 06:18:33 -0700 (PDT) Received: from dc8secmta1.internal.synopsys.com (dc8secmta1.internal.synopsys.com [127.0.0.1]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id 9420B27113; Thu, 18 Aug 2016 06:18:33 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id 6660927102; Thu, 18 Aug 2016 06:18:33 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 52DCFE66; Thu, 18 Aug 2016 06:18:33 -0700 (PDT) Received: from jppCent.internal.synopsys.com (jppcent.internal.synopsys.com [10.107.19.121]) by mailhost.synopsys.com (Postfix) with ESMTP id BC726E65; Thu, 18 Aug 2016 06:18:31 -0700 (PDT) From: Joao Pinto To: bhelgaas@google.com Cc: jszhang@marvell.com, jingoohan1@gmail.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Joao Pinto Subject: [PATCH] pcie-designware: build error fix Date: Thu, 18 Aug 2016 14:18:29 +0100 Message-Id: <7083dc9188405f25307d0a75d4e199846ac06ac9.1471525771.git.jpinto@synopsys.com> X-Mailer: git-send-email 1.8.1.5 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch is to fix a building error in branch pci/host-designware. Signed-off-by: Joao Pinto --- drivers/pci/host/pcie-designware.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index be70f28..6a743c5 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c @@ -511,9 +511,8 @@ static const struct irq_domain_ops msi_domain_ops = { static u8 dw_pcie_iatu_unroll_enabled(struct pcie_port *pp) { - u32 val = 0; + u32 val = dw_pcie_readl_rc(pp, PCIE_ATU_VIEWPORT); - dw_pcie_readl_rc(pp, PCIE_ATU_VIEWPORT, &val); if (val == 0xffffffff) return 1;