]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: do not halt CoreSight during hard reset
authorOmer Shpigelman <oshpigelman@habana.ai>
Sun, 5 Jan 2020 09:05:45 +0000 (09:05 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 11 Feb 2020 09:12:47 +0000 (11:12 +0200)
commitc4cdb79412679ebc822d94fa4411c236783122a0
tree2a30fb39b4384bf4914f9d540ba2aaed0779ed28
parent4617ce4409eb9029b4ebd3eab6b029be923d8d69
habanalabs: do not halt CoreSight during hard reset

During hard reset we must not write to the device.
Hence avoid halting CoreSight during user context close if it is done
during hard reset.
In addition, we must not re-enable clock gating afterwards as it was
deliberately disabled in the beginning of the hard reset flow.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/device.c