diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2020-12-14 13:52:06 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2020-12-28 09:47:39 +0300 |
commit | fcaebc7354188b0d708c79df4390fbabd4d9799d (patch) | |
tree | 7921d716dcb90eb697c16feec21e561fdd95a211 /drivers/misc | |
parent | a3fd28306329e8e82efab973aafe81e9001dcf6f (diff) | |
download | linux-fcaebc7354188b0d708c79df4390fbabd4d9799d.tar.xz |
habanalabs: register to pci shutdown callback
We need to make sure our device is idle when rebooting a virtual
machine. This is done in the driver level.
The firmware will later handle FLR but we want to be extra safe and
stop the devices until the FLR is handled.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/habanalabs/common/habanalabs_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/habanalabs_drv.c b/drivers/misc/habanalabs/common/habanalabs_drv.c index 6bbb6bca6860..032d114f01ea 100644 --- a/drivers/misc/habanalabs/common/habanalabs_drv.c +++ b/drivers/misc/habanalabs/common/habanalabs_drv.c @@ -544,6 +544,7 @@ static struct pci_driver hl_pci_driver = { .id_table = ids, .probe = hl_pci_probe, .remove = hl_pci_remove, + .shutdown = hl_pci_remove, .driver.pm = &hl_pm_ops, .err_handler = &hl_pci_err_handler, }; |