]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb446fce748f08b76f5e5ac7553e0f48ae2842763
tree55ff1002ff04ad6eb8efd8e60f8b60419bc16c64
parent6a6cc952c1fbf317616e572e77af5e89bc896188
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