From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Fri, 3 Jun 2016 22:05:40 -0700 Subject: [U-Boot] [PATCH] pcie/layerscape: fix bug in bus number computation when setting msi-map In-Reply-To: <1463469520-705-1-git-send-email-bogdan.purcareata@nxp.com> References: <1463469520-705-1-git-send-email-bogdan.purcareata@nxp.com> Message-ID: <575261A4.1030509@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/17/2016 03:52 AM, Bogdan Purcareata wrote: > When multiple PCI cards are present in an ls2080a board, the second > card does not get its msi-map set up properly due to a bug in computing > the bus number. > > The bus number returned by PCI_BDF() is not the actual PCI bus > number, but instead represents a global u-boot PCI bus number. A given > bus number is relative to hose->first_busno, so that has to be subtracted > from the PCI device id. > > Signed-off-by: Bogdan Purcareata > Acked-by: Stuart Yoder > --- > drivers/pci/pcie_layerscape.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > Applied to fsl-qoriq master branch. Awaiting upstream. Thanks. York