Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3800960ybi; Mon, 29 Jul 2019 12:54:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZbBJ5tN3xTqRjkv2WHQxr/TTo3+2iJkKpEF94dattVgvH3txAEoleso5K7FF2Gs6w6/Xs X-Received: by 2002:a17:90a:246f:: with SMTP id h102mr112173989pje.126.1564430043037; Mon, 29 Jul 2019 12:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564430043; cv=none; d=google.com; s=arc-20160816; b=pA05/wtth+D+01zlV8PdJJDt4TvnHB9H03K+GE4/6wo9PDAJ8w3wAH+bm+Fd9OsyNP rAHzUcLHRk7Y9ChdoACUKdFopPor9mgB8Qw9Pou+6sMsB8WM8GKU8QR3ySRTUcYdul9h fn7Cl8mqKRmulFNN+C/uXjGDXzFh/YMN4j11OCl0ofrPWmFdwfrBr3xyIObUZ/4wo2il 0NOdHw2P2ekwMw1/vopgyvyVSrLUkmiup1H0p243UnWOw9ADhdq0EBd5AXC5xyeYK1hA EYhcDiXUtsjdlBP1ThmFilEuJZcJ2SlxItieJT5sdv5kPvUKbck5cuatNkKk2OCNYk3W 4Ulw== 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=1roltn75NhL7FVpAZMQODeTQF9d178fOO+JQBfpYhYc=; b=LoCoIeWgIkVSfiK22CPrOXBa2JB+9Ddo6vFcxyqptBZ85FW4QN6THaCLHNoch6cgvy oNcvpDxAkPlXxA7JKQhKLwmyp3wqnwcrNLRHgY1C7FPFlGWiFTR21zBWgMVCz37qVF7H hzJ3YmHGZa0v2KW2kZWXGmDYMsTKocdVeimGbBIG6O4Vzny/aTQeRhSsmDNJtPdb6G/U 4MgEard3GqT7ROsvKOsTBk/+YyBHbrW3xQ5nUrr6+U4iGIRC+Wgf+Z/pUx7zDKR+IekB gvdkp1PKnNQgBAVrJjEkz5Wm1nMJzJY6YHZDMit51amBcOMOWnTF2pAM9Hpsz7SqORoe PJNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HbMxJHTs; 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 t185si18065368pgb.329.2019.07.29.12.53.48; Mon, 29 Jul 2019 12:54:03 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HbMxJHTs; 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 S2390538AbfG2Twb (ORCPT + 99 others); Mon, 29 Jul 2019 15:52:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:44136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403753AbfG2TwU (ORCPT ); Mon, 29 Jul 2019 15:52:20 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 D159B21655; Mon, 29 Jul 2019 19:52:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429939; bh=EHOYCqdFJJuNXpQX4tmYZLiS2CDBP0SO1pXydWmDMgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HbMxJHTsqNai3n1kJCxjN0MgW/les2qLI5yvwOsaaswjYwd9dmtTL1u5B4vSMQU6x PuOLxgv4fYcrkTKvI6sv9Kq59R/L53gaTI4a4M7064wd6yeVhlytjiOXtCgupYT3pv oKFqRkD2CTAnUpmpx+TB1++gqNF05g/VXVUJqaVo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hou Zhiqiang , Lorenzo Pieralisi , Minghuan Lian , Subrahmanya Lingappa , Sasha Levin Subject: [PATCH 5.2 117/215] PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers Date: Mon, 29 Jul 2019 21:21:53 +0200 Message-Id: <20190729190759.367430013@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 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 [ Upstream commit 6f3ab451aa5c2cbff33197d82fe8489cbd55ad91 ] The reset value of Primary, Secondary and Subordinate bus numbers is zero which is a broken setup. Program a sensible default value for Primary/Secondary/Subordinate bus numbers. Signed-off-by: Hou Zhiqiang Signed-off-by: Lorenzo Pieralisi Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa Signed-off-by: Sasha Levin --- drivers/pci/controller/pcie-mobiveil.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index 88e9b70081fc..e4a1964e1b43 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -501,6 +501,12 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) return err; } + /* setup bus numbers */ + value = csr_readl(pcie, PCI_PRIMARY_BUS); + value &= 0xff000000; + value |= 0x00ff0100; + csr_writel(pcie, value, PCI_PRIMARY_BUS); + /* * program Bus Master Enable Bit in Command Register in PAB Config * Space -- 2.20.1