OSDN Git Service

PCI: Split ->reset_notify() method into ->reset_prepare() and ->reset_done()
authorChristoph Hellwig <hch@lst.de>
Thu, 1 Jun 2017 11:10:38 +0000 (13:10 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 3 Jul 2017 12:58:30 +0000 (07:58 -0500)
commit775755ed3c65fb2d31f9268162495d76eaa2c281
tree0d5157c1e20b380d605670308a7b6c4a003cd129
parentb014e96d1abbd67404bbe2018937b46466299e9e
PCI: Split ->reset_notify() method into ->reset_prepare() and ->reset_done()

The pci_error_handlers->reset_notify() method had a flag to indicate
whether to prepare for or clean up after a reset.  The prepare and done
cases have no shared functionality whatsoever, so split them into separate
methods.

[bhelgaas: changelog, update locking comments]
Link: http://lkml.kernel.org/r/20170601111039.8913-3-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c
drivers/net/wireless/marvell/mwifiex/pcie.c
drivers/nvme/host/pci.c
drivers/pci/pci.c
include/linux/pci.h