habanalabs: register to pci shutdown callback
authorOded Gabbay <ogabbay@kernel.org>
Mon, 14 Dec 2020 10:52:06 +0000 (12:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:27:25 +0000 (18:27 +0100)
commitc78cff56baad24ebb10d748e1a1b78bae203debe
treeb6f16760ea2bf869b1b90947026dd3711023e9c3
parent68a9abf536ff3c54b80983780315d8426da43125
habanalabs: register to pci shutdown callback

[ Upstream commit fcaebc7354188b0d708c79df4390fbabd4d9799d ]

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>
drivers/misc/habanalabs/common/habanalabs_drv.c