PCI: Wake-up devices before saving config space for reset
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 8 Aug 2013 20:10:02 +0000 (14:10 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 14 Aug 2013 21:24:41 +0000 (15:24 -0600)
commita6cbaadea0af9b4aa6eee2882f2aa761ab91a4f8
tree15552cbb68ec0824681dfdd6a9bad5865b2e62e9
parent090a3c5322e900f468b3205b76d0837003ad57b2
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 <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
This page took 0.024993 seconds and 5 git commands to generate.