From patchwork Fri Jan 27 21:44:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9542709 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 082EA60415 for ; Fri, 27 Jan 2017 21:46:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECD94204C1 for ; Fri, 27 Jan 2017 21:46:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB60E27F9F; Fri, 27 Jan 2017 21:46:53 +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=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8705C204C1 for ; Fri, 27 Jan 2017 21:46:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cXEM0-00073q-Au; Fri, 27 Jan 2017 21:46:44 +0000 Received: from merlin.infradead.org ([205.233.59.134]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cXEL8-0006bz-3T for linux-arm-kernel@bombadil.infradead.org; Fri, 27 Jan 2017 21:45:50 +0000 Received: from mail-qt0-x22c.google.com ([2607:f8b0:400d:c0d::22c]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cXEL6-0001eq-S6 for linux-arm-kernel@lists.infradead.org; Fri, 27 Jan 2017 21:45:49 +0000 Received: by mail-qt0-x22c.google.com with SMTP id w20so89381231qtb.1 for ; Fri, 27 Jan 2017 13:45:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=64pAhwbVuCdQKItlX6E1fO8D4+OoYF8y4obPUp8P7U0=; b=WJfRZygoR6Io174eV0sKC1iJy6z7BQiXnQnZYcor2kvGscngGgnwntcBHvGSaS7GDs pCASBAmluxHyFG/RuK9IXnngHp2TirBpj1/Ku2rHoRjqlVS9YSSC2TtCT5hV7xfK2AYB CSo7yvR3ial3AJMzDHdVorW2PHDl8Xxw/Daj8= 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; bh=64pAhwbVuCdQKItlX6E1fO8D4+OoYF8y4obPUp8P7U0=; b=QdqVBZ5bM8PBt6NJVHgH1H0/IwJwF7GvRP0TLcpsgBVIKMm9gFPtN4YRutjLgO5g+7 SihguohM2wgSzeA/9NjWcpPqzKpbwbbyLSWvGCbrlntoa+xJSxhYBzc7KgbChQTLstz2 Ow+wK6nyrltpR1TLGePUgNHyAw04QH5npoBemqKnsUIurenK5hZsYRrEqDtfovCsfUK9 4JE4c6yOEfa14mtNT7y/m0sv0yUnoBlz4UVx726bCNQC2tgOifS8ItJWUIR6yNKQ6IzB 8y936S+jVBUZNUGFGlooCp+t76QuAznrfO6Ytw0ScJvMWn1WsJ3E5LDY3ZVVyWmuPt3O bwnQ== X-Gm-Message-State: AIkVDXKhIatnov/xZJXpeJPO6pzKBxrmOilly3M2rdtN8NiMCA5LA2OP894Xp8dJKF9XeTXL X-Received: by 10.55.149.6 with SMTP id x6mr10275690qkd.55.1485553465187; Fri, 27 Jan 2017 13:44:25 -0800 (PST) Received: from venom.dhcp.broadcom.net ([192.19.218.250]) by smtp.gmail.com with ESMTPSA id 37sm5171252qto.43.2017.01.27.13.44.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Jan 2017 13:44:24 -0800 (PST) From: Jon Mason To: Bjorn Helgaas Subject: [PATCH 1/2] PCI: iproc: allow the MPS to be set Date: Fri, 27 Jan 2017 16:44:08 -0500 Message-Id: <1485553449-9345-2-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485553449-9345-1-git-send-email-jon.mason@broadcom.com> References: <1485553449-9345-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170127_164549_028252_7A04145C X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pci@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP pcie_bus_configure_settings() needs to be called on each of the root ports to allow for the MPS to be configured for all of the children devices. Signed-off-by: Jon Mason --- drivers/pci/host/pcie-iproc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-iproc.c b/drivers/pci/host/pcie-iproc.c index 3ebc025..0f39bd2 100644 --- a/drivers/pci/host/pcie-iproc.c +++ b/drivers/pci/host/pcie-iproc.c @@ -1205,7 +1205,7 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res) struct device *dev; int ret; void *sysdata; - struct pci_bus *bus; + struct pci_bus *bus, *child; dev = pcie->dev; @@ -1278,6 +1278,9 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res) if (pcie->map_irq) pci_fixup_irqs(pci_common_swizzle, pcie->map_irq); + list_for_each_entry(child, &bus->children, node) + pcie_bus_configure_settings(child); + pci_bus_add_devices(bus); return 0;