habanalabs: check flag before reset because of f/w event
authorOded Gabbay <oded.gabbay@gmail.com>
Fri, 4 Sep 2020 18:39:14 +0000 (21:39 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:52 +0000 (18:49 +0300)
commit1fb2f3743754994fec412f63a12cbc4d72f49e38
tree9e5ab932c7f9090919b375607d875c6956f3f9b8
parent5a1b861daab8379d792bfae917f317708d1c99d2
habanalabs: check flag before reset because of f/w event

For consistency with GAUDI code, add check of the relevant flag in the
device structure before resetting the GOYA device in case of firmware
event.

Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c