summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/debugfs.c
diff options
context:
space:
mode:
authorTomer Tayar <ttayar@habana.ai>2021-07-09 17:34:45 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-08-29 09:47:46 +0300
commita9623a8b3ae67d04187b7a4478d4e4155720eebc (patch)
treec0d3d8fcb0522d13a6ffba519707b7275c43a81e /drivers/misc/habanalabs/common/debugfs.c
parent89aad770d692e4d2d9a604c1674e9dfa69421430 (diff)
downloadlinux-a9623a8b3ae67d04187b7a4478d4e4155720eebc.tar.xz
habanalabs: mark linux image as not loaded after hw_fini
If hard reset fails after the call to hw_fini and before loading the linux image to the device, a subsequent call to hw_fini should communicate via COMMS (or MSG_TO_CPU regs for old FW versions). However, the driver still tries in this case to communicate via the GIC, and thus no hard reset is actually done. To avoid that, the patch clears the linux_loaded flag after every call to hw_fini. Signed-off-by: Tomer Tayar <ttayar@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/common/debugfs.c')
0 files changed, 0 insertions, 0 deletions