Searched hist:"4 d8615cbf552843c6033daabf3495a1b7fc9dce7" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/pci/ |
| H A D | pci-uclass.c | 4d8615cbf552843c6033daabf3495a1b7fc9dce7 Sat Jul 18 16:20:04 UTC 2015 Bin Meng <bmeng.cn@gmail.com> dm: pci: Use complete bdf in all pci config read/write routines
Currently pci_bus_read_config() and pci_bus_write_config() are called with bus number masked off in the parameter bdf, and bus number is supposed to be added back in the bridge driver's pci config read/write ops if the device is behind a pci bridge. However this logic only works for a pci topology where there is only one bridge off the root controller. If there is addtional bridge in the system, the logic will create a non-existent bdf where its bus number gets accumulated across bridges.
To correct this, we change all pci config read/write routines to use complete bdf all the way up to the root controller.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
|