]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82b1e41c4d096bc9f631d65fbd4354439af188c9
tree2047b9b6e16f066c17da856ed5db695eb6181232
parentb201c111d965d18d0671a6631d121fa3a58eac3c
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