NTB: add pci shutdown handler for AMD NTB
authorArindam Nath <arindam.nath@amd.com>
Wed, 5 Feb 2020 15:54:32 +0000 (21:24 +0530)
committerJon Mason <jdmason@kudzu.us>
Fri, 13 Mar 2020 14:04:20 +0000 (10:04 -0400)
commitb350f0a3eb264962caefeb892af56c1b727ee03f
tree2047b9b6e16f066c17da856ed5db695eb6181232
parentac10d4f6c2a8247de21655f4564b0e209c3c1dd4
NTB: add pci shutdown handler for AMD NTB

The PCI shutdown handler is invoked in response
to system reboot or shutdown. A data transfer
might still be in flight when this happens. So
the very first action we take here is to send
a link down notification, so that any pending
data transfer is terminated. Rest of the actions
are same as that of PCI remove handler.

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/amd/ntb_hw_amd.c