habanalabs: disable FW events on device removal
authorOded Gabbay <ogabbay@kernel.org>
Mon, 18 Jan 2021 19:39:46 +0000 (21:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2021 14:37:17 +0000 (15:37 +0100)
commit4587cb6f27a6f3518aa5195e6a2676ac02dac5aa
tree0b04ab0d589b978f2e714d0ded30adb9d4dd8220
parent90981a2171b9fdb6d20046f7ce3d70f8c460e53e
habanalabs: disable FW events on device removal

[ Upstream commit 2dc4a6d79168e7e426e8ddf8e7219c9ffd13b2b1 ]

When device is removed, we need to make sure the F/W won't send us
any more events because during the remove process we disable the
interrupts.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/habanalabs/common/device.c