For consistency with GAUDI code, add check of the relevant flag in the
device structure before resetting the GOYA device in case of firmware
event.
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
        case GOYA_ASYNC_EVENT_ID_L2_RAM_ECC:
        case GOYA_ASYNC_EVENT_ID_PSOC_GPIO_05_SW_RESET:
                goya_print_irq_info(hdev, event_type, false);
-               hl_device_reset(hdev, true, false);
+               if (hdev->hard_reset_on_fw_events)
+                       hl_device_reset(hdev, true, false);
                break;
 
        case GOYA_ASYNC_EVENT_ID_PCIE_DEC: