Skip to content
Commit bd4a3388 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: fix update of is_in_soft_reset



reset_info.is_in_soft_reset should be updated both before in_reset
and inside the spin lock of the reset info structure.

The reasons are:

- When we are inside soft reset, it implies we are in reset. Therefore,
  if someone checks if we are in soft reset, he can deduce we are
  in reset, while the opposite is not correct and might be misleading.

- Both these flags are changed together so they must be changed
  inside the reset info spinlock.

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 08f0aa95
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment