]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c8b76dd52068f2f596037da1f55ddf3b3713808
tree0d5157c1e20b380d605670308a7b6c4a003cd129
parent0d61c14cc4140a99e8218181d0fe6b974ffcff58
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