Skip to content

Commit fcaebc7

Browse files
committed
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>
1 parent a3fd283 commit fcaebc7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/misc/habanalabs/common/habanalabs_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ static struct pci_driver hl_pci_driver = {
544544
.id_table = ids,
545545
.probe = hl_pci_probe,
546546
.remove = hl_pci_remove,
547+
.shutdown = hl_pci_remove,
547548
.driver.pm = &hl_pm_ops,
548549
.err_handler = &hl_pci_err_handler,
549550
};

0 commit comments

Comments
 (0)