]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs/gaudi: invoke device reset from one code block
authorTal Cohen <talcohen@habana.ai>
Wed, 8 Jun 2022 13:02:09 +0000 (16:02 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:22 +0000 (09:09 +0300)
commit7ad4a5773e53cb5211c8ea12adbd66184fca4a17
treee44e645f4276837d00249d721937a9620d20bfdb
parent1313771c335a4244f812c255c98f29739d17535a
habanalabs/gaudi: invoke device reset from one code block

In order to prepare the driver code for device reset event
notification, change the event handler function flow to call
device reset from one code block.

In addition, the commit fixes an issue that reset was performed
w/o checking the 'hard_reset_on_fw_event' state and w/o setting
the HL_DRV_RESET_DELAY flag.

Signed-off-by: Tal Cohen <talcohen@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c