1
0
Fork 0

habanalabs: register to pci shutdown callback

[ Upstream commit fcaebc7354 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
5.4-rM2-2.2.x-imx-squashed
Oded Gabbay 2020-12-14 12:52:06 +02:00 committed by Greg Kroah-Hartman
parent 79df21218d
commit 93aef8e6cc
1 changed files with 1 additions and 0 deletions

View File

@ -443,6 +443,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,
};