From: Alex Williamson Date: Thu, 8 Aug 2013 20:10:02 +0000 (-0600) Subject: PCI: Wake-up devices before saving config space for reset X-Git-Tag: v3.12-rc1~177^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6cbaadea0af9b4aa6eee2882f2aa761ab91a4f8;p=pandora-kernel.git PCI: Wake-up devices before saving config space for reset Devices come out of reset in D0. Restoring a device to a different post-reset state takes more smarts than our simple config space restore, which can leave devices in an inconsistent state. For example, if a device is reset in D3, but the restore doesn't successfully return the device to D3, then the actual state of the device and dev->current_state are contradictory. Put everything in D0 going into the reset, then we don't need to do anything special on the way out. Signed-off-by: Alex Williamson Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed