Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1610235imj; Fri, 8 Feb 2019 04:29:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IZsO1XGFSblbTWDMaYOjNMq52H+RHaO1FL0YEepvecoK6N/IMlUBk+sG4ftoATm22hawjem X-Received: by 2002:a62:528e:: with SMTP id g136mr22784521pfb.111.1549628995975; Fri, 08 Feb 2019 04:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549628995; cv=none; d=google.com; s=arc-20160816; b=VceXNM8JXwQMNw+J6tPErlG/r8MRJc8/5H0SKMX9ggAWin0ipxgWDq3S+cYruDiJ59 Dr42b74eETRiBSuEqfbrGROZOzvuCAUl1KfXLTvQ7nCVg6aqJu/L9HUXC4m3MTiZoHfO dAfgavl4nv7A6qEkZqKcvuA2rY45X+KWo9ZMDS4/SEDjX6j3GEEBrk31WcCRyiltSca6 3EIeQGPkFHlxvfpYVLM5roCml6p7XV15ZsfiWworADYcVPc03IcKNbavix4KsQNQPJvc YpdKSIwRaCVHKdrLhR1+YU/F/I7Olpinf7A/p341JtAW1tQ86DQzo/7jPrDrEfoSVS13 XHmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=g9nFuyNIknlIPIGeHUyXP6qUPfqzFzQLiNuJwZvm5cU=; b=W18WFBUUH62ch0K//59MDHcFQzdy861EyVfK+OWzJjdqyRc5VN3EoOEknncBdNuLlm mF1IgYIm05b1TH15CoF8O8SBGZ8JwK+IhQM7Ha6wx2T7zBcUNp+qCk7z/R8Ki/rzvNKm BO1M/sYVfHIF55QwweNriTQZ9AoXD6bTAQp0AtWHKziAIeKWyEcslljsFSkjapdhAtYX ojVO5t9a0ty7eiqT+jybrVJwkHMmtskXJTcJcgLkxXM6C9Inmovpduz9QEseTI1mZFDW iOtOpmt7vjxkjwZzdGG1QpXB0zIKaAS+eivthqkFixpDenDLogOGuy1WKQpTcJmf/rjq V58w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=eK5Pp9Ru; 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 z14si2152691plo.118.2019.02.08.04.29.39; Fri, 08 Feb 2019 04:29:55 -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=@mobiveil.co.in header.s=google header.b=eK5Pp9Ru; 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 S1727623AbfBHM3N (ORCPT + 99 others); Fri, 8 Feb 2019 07:29:13 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37795 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727543AbfBHM3L (ORCPT ); Fri, 8 Feb 2019 07:29:11 -0500 Received: by mail-wr1-f68.google.com with SMTP id c8so3388332wrs.4 for ; Fri, 08 Feb 2019 04:29:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mobiveil.co.in; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g9nFuyNIknlIPIGeHUyXP6qUPfqzFzQLiNuJwZvm5cU=; b=eK5Pp9RuVMmtIWtg7h7fgU66oyZMjz3hwMnNA+eP++5q7EFsskUTciNTLlXSPxZ3ja b413Rwfl8CdiPQedqr0B+riZ3+ruwnAFU1hHFHgWVzk8X5aAU/g/bP6B3hmcGnCobjN1 xvjy2sUSCVGYEXtrv8VepBlC51tsCRacZ1Dig= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g9nFuyNIknlIPIGeHUyXP6qUPfqzFzQLiNuJwZvm5cU=; b=KurTbc9qm8We4ZSWrV/AgA9v6FREh+kCiaUI0JKqtx5OaLao1XAGWtqmlsvaXBGf+C GY9Bm+0zw1rZUKfzd867+vg7JSC+zEFA5kA79VcPyN7zEVZ55Z/NB1HC+cRM7ljETLtw 7dTPpWbCxvQyL27ndDLLDAEVkyi8YrfmzVfKQ5cZ0G0NvhQJm8COYTgVvvBBBLY7i/bL BEI57fRS7Ow3XTKWdA6fHptH5+ZTlwLPQCC59MaE78WpclxmOanAAmWwjC5S6LSGMX7X DeYJl5WUZg4elMHUOTIklEjvcKtRnaDEfBICSiK5uz2od2z9tu1sYdcvBwRamZe7MrKl HXow== X-Gm-Message-State: AHQUAuZTrHvsDKiHnDmwKQdNFjcQ3jRf13TPI4PYHTP46kBeJLhofp+u qkvbyT5jJkBw0bP5vvt9cIPLUnYFKW6AZubl9/UrMw== X-Received: by 2002:adf:b201:: with SMTP id u1mr3445624wra.165.1549628949513; Fri, 08 Feb 2019 04:29:09 -0800 (PST) MIME-Version: 1.0 References: <20190129080926.36773-1-Zhiqiang.Hou@nxp.com> <20190129080926.36773-15-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190129080926.36773-15-Zhiqiang.Hou@nxp.com> From: Subrahmanya Lingappa Date: Fri, 8 Feb 2019 18:01:48 +0530 Message-ID: Subject: Re: [PATCHv3 14/27] PCI: mobiveil: initialize Primary/Secondary/Subordinate bus number To: "Z.q. Hou" Cc: "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" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 29, 2019 at 1:40 PM Z.q. Hou wrote: > > From: Hou Zhiqiang > > The reset value is all zero, so set a workable value for Primary, > Secondary and Subordinate bus numbers. > > Signed-off-by: Hou Zhiqiang > Reviewed-by: Minghuan Lian > --- > V3: > - No change > > 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 db7ecb021c63..9210165fe8c0 100644 > --- a/drivers/pci/controller/pcie-mobiveil.c > +++ b/drivers/pci/controller/pcie-mobiveil.c > @@ -582,6 +582,12 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) > u32 value, pab_ctrl, type; > struct resource_entry *win; > > + /* 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.17.1 > Reviewed-by: Subrahmanya Lingappa