projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3fd283
)
habanalabs: register to pci shutdown callback
author
Oded Gabbay
<ogabbay@kernel.org>
Mon, 14 Dec 2020 10:52:06 +0000
(12:52 +0200)
committer
Oded Gabbay
<ogabbay@kernel.org>
Mon, 28 Dec 2020 06:47:39 +0000
(08:47 +0200)
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>
drivers/misc/habanalabs/common/habanalabs_drv.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/common/habanalabs_drv.c
b/drivers/misc/habanalabs/common/habanalabs_drv.c
index
6bbb6bc
..
032d114
100644
(file)
--- 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,
};