]> www.infradead.org Git - users/jedix/linux-maple.git/commit
habanalabs: fail reset if device is not idle
authorOded Gabbay <ogabbay@kernel.org>
Tue, 16 Feb 2021 20:46:17 +0000 (22:46 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 9 Apr 2021 11:09:22 +0000 (14:09 +0300)
commit23c3efd1fb0eb19b9e39eeb07515b167f6d4517a
tree37ca8c1c03e69d456213d106e0b1fe1d283bc289
parent35862d1c99471e3a03175e94d267815a0921e9ca
habanalabs: fail reset if device is not idle

After any reset (soft or hard) the device (the engines/QMANs) should
be idle. If they are not idle, fail the reset. If it is soft-reset,
the driver will try to do hard-reset automatically. If it is hard-reset,
the driver will make the device non-operational.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c