OSDN Git Service

habanalabs: abort reset on invalid request
authorOded Gabbay <ogabbay@kernel.org>
Mon, 15 Nov 2021 15:13:37 +0000 (17:13 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:06 +0000 (08:59 +0200)
commitab440d3e39f61018b1f4c1c6bed6ab037f69a82e
tree2e9378c38981b5ea9a8cd47189cacd7c11d162d8
parenta1b838adb080ee4320f257a8280821e47bfb9a1f
habanalabs: abort reset on invalid request

Hard-reset is mutually exclusive with reset-on-device-release.
Therefore, if such a request arrives to the reset function, abort
the reset and return an error to the callee.

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