Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp712404imj; Wed, 13 Feb 2019 16:18:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IaI4igFyowYrx5fkXCfjVZ7QPwhdiK7PgHIgSQRUI1sfUjgnz5UAMbp/mcni6dn7JurSzZf X-Received: by 2002:a17:902:4681:: with SMTP id p1mr1035655pld.184.1550103495472; Wed, 13 Feb 2019 16:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550103495; cv=none; d=google.com; s=arc-20160816; b=BjxbCr+GWHauKgJYKmeggNDBHPRbt8emm1RTHiHHm12bFDW2SoeD6s5Rw2sVzBIio9 kQD0j1QZCuEUw1FpmDomh+7Z73NIFofBhncbIugi0gcXpmJSpsDQdRbJ0+WV1sZwtkrn iijrvqacGYBMeC/q/nuZJlX5gbDtH6n4qyUhPx6QeajlK0Za3seWSm3lksyvz8HZyC4+ oMoCI8hniCTjYtuAMQhf2x41f/4cPymw/bT7hRTIyfbyWg71Fy5sdYbLVLvJSsIQ4Jml bhnFj7K52sakgQ7uKoaUuLs34u7CxCB9K/iD0y0+r2WFi6xfJ7Ls41f4UpOvi+OfbXLK 7QtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uCMTUnUQx0upFdux7vNVwfcI204zVvMSsab6A3Y3f+s=; b=gv3cdV57/g20AgULa4asEMlViXYviIWwljLiPcG7jc5/x15zq1AmnadjdhrUI3AnP+ 7WZXpMSwmH2QaNHlGOfGdRD3YrtMXtkuw0tLgGn1EEzg4Hi031yZQXuvjeDkrnfbgANv Yvf5/3ev4u+6iwslJPPqq+Hl/cdFIYqW/QGp7jpDcmR1LsUAyQm19MdnJa+9TVufpqQ2 7Sge0hNNIAUh//QX7GrHBEKcQ7VeCPx5rcQnVd6vHAEeHHfyZv71RrDiYtSKT3fSkZsE 9Dy3rAtkygBbNFFVj8CPeOEcEdUB163zVXyJ4kpBvg3CrvwCrx81vHm+m2PoDrmGh+Fk 4S+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fX8I2rgi; 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 ci9si855171plb.252.2019.02.13.16.17.59; Wed, 13 Feb 2019 16:18:15 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=fX8I2rgi; 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 S2394061AbfBMSpi (ORCPT + 99 others); Wed, 13 Feb 2019 13:45:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:44222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731955AbfBMSpg (ORCPT ); Wed, 13 Feb 2019 13:45:36 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8A7E020811; Wed, 13 Feb 2019 18:45:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550083536; bh=pM0IgIrhjx9yDUVY5BCiELpGaWMCyl9drMj5JjYNkh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fX8I2rgiriKANOEP216TIn9Z5VFMoPlF35hdRqvR5BOtIxZxLQsmNKDfvScKnb/iF XyYD+X+pRQXkwUAA9B1c147TBE2yN0MA76Pbb072CT5nr7d6IzNYkQzDwOdjOLXOSD 9yvwPeniHnMFcYqNvOAQhToE1cQs+VrtkhHWZ7Ys= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaro Koskinen , Paul Burton , linux-mips@vger.kernel.org Subject: [PATCH 4.20 25/50] MIPS: OCTEON: dont set octeon_dma_bar_type if PCI is disabled Date: Wed, 13 Feb 2019 19:38:30 +0100 Message-Id: <20190213183657.760765075@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213183655.747168774@linuxfoundation.org> References: <20190213183655.747168774@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aaro Koskinen commit dcf300a69ac307053dfb35c2e33972e754a98bce upstream. Don't set octeon_dma_bar_type if PCI is disabled. This avoids creation of the MSI irqchip later on, and saves a bit of memory. Signed-off-by: Aaro Koskinen Signed-off-by: Paul Burton Fixes: a214720cbf50 ("Disable MSI also when pcie-octeon.pcie_disable on") Cc: stable@vger.kernel.org # v3.3+ Cc: linux-mips@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- arch/mips/pci/pci-octeon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/arch/mips/pci/pci-octeon.c +++ b/arch/mips/pci/pci-octeon.c @@ -568,6 +568,11 @@ static int __init octeon_pci_setup(void) if (octeon_has_feature(OCTEON_FEATURE_PCIE)) return 0; + if (!octeon_is_pci_host()) { + pr_notice("Not in host mode, PCI Controller not initialized\n"); + return 0; + } + /* Point pcibios_map_irq() to the PCI version of it */ octeon_pcibios_map_irq = octeon_pci_pcibios_map_irq; @@ -579,11 +584,6 @@ static int __init octeon_pci_setup(void) else octeon_dma_bar_type = OCTEON_DMA_BAR_TYPE_BIG; - if (!octeon_is_pci_host()) { - pr_notice("Not in host mode, PCI Controller not initialized\n"); - return 0; - } - /* PCI I/O and PCI MEM values */ set_io_port_base(OCTEON_PCI_IOSPACE_BASE); ioport_resource.start = 0;