]> git.baikalelectronics.ru Git - kernel.git/commit
PCI PM: Do not disable and enable bridges during suspend-resume
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 4 Feb 2009 01:01:15 +0000 (02:01 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 5 Feb 2009 01:21:26 +0000 (17:21 -0800)
commit68b59a6e47c18116bfdb60b49e2832e63321e317
treed6742d56e3df1355a39df1c481430211d59f67f1
parenta75e0f790cbc81e026b744d2351cad6b4e6cdc89
PCI PM: Do not disable and enable bridges during suspend-resume

It is a mistake to disable and enable PCI bridges and PCI Express
ports during suspend-resume, at least at the time when it is
currently done.  Disabling them may lead to problems with accessing
devices behind them and they should be automatically enabled when
their standard config spaces are restored.  Fix this by not attempting
to disable bridges during suspend and enable them during resume.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-driver.c