[U-Boot] [PATCH] pcie/layerscape: fix bug in bus number computation when setting msi-map

York Sun york.sun at nxp.com
Sat Jun 4 07:05:40 CEST 2016


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 <bogdan.purcareata at nxp.com>
> Acked-by: Stuart Yoder <stuart.yoder at nxp.com>
> ---
>  drivers/pci/pcie_layerscape.c | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
> 

Applied to fsl-qoriq master branch. Awaiting upstream.
Thanks.

York




More information about the U-Boot mailing list