diff options
author | Yuanquan Chen <Yuanquan.Chen@freescale.com> | 2013-05-17 11:35:29 +0400 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2013-08-08 03:38:08 +0400 |
commit | 36f684940017b7a5d9039861189203d64d2f8861 (patch) | |
tree | fff1dd4c5e9c527bc182223a70fbd1d9ce793046 /fs | |
parent | c45e91831b80b97116eb2bbab30a95bc88e32f77 (diff) | |
download | linux-36f684940017b7a5d9039861189203d64d2f8861.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>
Tested-by: Rojhalat Ibrahim <imr@rtschenk.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions