• Oded Gabbay's avatar
    habanalabs: fix update of is_in_soft_reset · bd4a3388
    Oded Gabbay authored
    
    
    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>
    bd4a3388
device.c 56.6 KB