habanalabs: register to pci shutdown callback
authorOded Gabbay <ogabbay@kernel.org>
Mon, 14 Dec 2020 10:52:06 +0000 (12:52 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Dec 2020 06:47:39 +0000 (08:47 +0200)
commitfcaebc7354188b0d708c79df4390fbabd4d9799d
tree7921d716dcb90eb697c16feec21e561fdd95a211
parenta3fd28306329e8e82efab973aafe81e9001dcf6f
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>
drivers/misc/habanalabs/common/habanalabs_drv.c