diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2021-11-16 09:30:26 +0100 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-12-26 07:59:06 +0100 |
commit | 9eade72e7246a25b8a13678d52a947033d6de710 (patch) | |
tree | eafda1e61bdfc5d2326179b676d814577f349a04 /drivers/misc/habanalabs | |
parent | habanalabs: rename late init after reset function (diff) | |
download | linux-9eade72e7246a25b8a13678d52a947033d6de710.tar.xz linux-9eade72e7246a25b8a13678d52a947033d6de710.zip |
habanalabs/gaudi: return EPERM on non hard-reset
GAUDI supports only hard-reset. Therefore, this function should
return an error of operation not permitted.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs')
-rw-r--r-- | drivers/misc/habanalabs/gaudi/gaudi.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c index 464d205a26ed..07e03d44930e 100644 --- a/drivers/misc/habanalabs/gaudi/gaudi.c +++ b/drivers/misc/habanalabs/gaudi/gaudi.c @@ -7821,12 +7821,8 @@ static void gaudi_print_fw_alive_info(struct hl_device *hdev, static int gaudi_non_hard_reset_late_init(struct hl_device *hdev) { - struct gaudi_device *gaudi = hdev->asic_specific; - - /* Unmask all IRQs since some could have been received - * during the soft reset - */ - return hl_fw_unmask_irq_arr(hdev, gaudi->events, sizeof(gaudi->events)); + /* GAUDI doesn't support any reset except hard-reset */ + return -EPERM; } static int gaudi_hbm_read_interrupts(struct hl_device *hdev, int device, |