]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] PCI: Error handling on PCI device resume
authorJean Delvare <khali@linux-fr.org>
Tue, 18 Apr 2006 12:49:56 +0000 (14:49 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 11 Jun 2006 21:02:27 +0000 (14:02 -0700)
commitaf1585822a5a09a449ec03a0dd4c76589c7c2d74
tree62e1d36d17e7b20bf6530104059807242c91f96a
parent176dafc3767d0b67e7514da0548ff1f60f9e5bc6
[PATCH] PCI: Error handling on PCI device resume

We currently don't handle errors properly when resuming a PCI device:
* In pci_default_resume() we capture the error code returned by
  pci_enable_device() but don't pass it up to the caller.
  Introduced by commit 3470b64fa2566eb25ecdc9e6133db48b1f5589d7
* In pci_resume_device(), the errors possibly returned by the driver's
  .resume method or by the generic pci_default_resume() function are
  ignored.

This patch fixes both issues.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci-driver.c