diff options
author | Yuanquan Chen <Yuanquan.Chen@freescale.com> | 2013-04-25 10:05:56 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-05-17 17:22:31 (GMT) |
commit | 9ce3edd6e227e225e24ca0d6c23bb12a2187ebab (patch) | |
tree | 50d75bf1c8c47b30d7d7d6ee5f14d84f53c9c720 /lib/decompress_unxz.c | |
parent | 67b6708d062b71b40e27ff0ef34e17e5effee5bb (diff) | |
download | linux-fsl-qoriq-9ce3edd6e227e225e24ca0d6c23bb12a2187ebab.tar.xz |
powerpc/pci: fix PCI-e check link issue
For freescale powerpc platform, the PCI-e bus number uses the reassign mode
by default. It means the second PCI-e controller's hose->first_busno is the
first controller's last bus number adding 1. For some hotpluged device(or
controlled by FPGA), the device is linked to PCI-e slot at linux runtime.
It needs rescan for the system to add it and driver it to work. It successes
to rescan the device linked to the first PCI-e controller's slot, but fails to
rescan the device linked to the second PCI-e controller's slot. The cause is
that the bus->number is reset to 0, which isn't equal to the hose->first_busno
for the second controller checking PCI-e link. So it doesn't really check the
PCI-e link status, the link status is always no_link. The device won't be
really rescaned. Reset the bus->number to hose->first_busno in the function
fsl_pcie_check_link(), it will do the real checking PCI-e link status for the
second controller, the device will be rescaned.
Signed-off-by: Yuanquan Chen <Yuanquan.Chen@freescale.com>
Change-Id: I404ec37966f14980e7ae07d0bd9abaa3624ea33b
Reviewed-on: http://git.am.freescale.net:8181/2098
Reviewed-by: Zang Tiefei-R61911 <tie-fei.zang@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'lib/decompress_unxz.c')
0 files changed, 0 insertions, 0 deletions