PCI: check for pci bar restore completion and retry
authorKay, Allen M <allen.m.kay@intel.com>
Thu, 26 Jan 2012 18:25:53 +0000 (10:25 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 14 Feb 2012 16:45:02 +0000 (08:45 -0800)
commit26f41062f28de65e11d3cf353e52d0be73442be1
tree55ff1002ff04ad6eb8efd8e60f8b60419bc16c64
parent2debd9289997fc5d1c0043b41201a8b40d5e11d0
PCI: check for pci bar restore completion and retry

On some OEM systems, pci_restore_state() is called while FLR has not yet
completed.  As a result, PCI BAR register restore is not successful.  This fix
reads back the restored value and compares it with saved value and re-tries 10
times before giving up.

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c