@@ -916,7 +916,6 @@ megasas_ioc_init_fusion(struct megasas_instance *instance)
916
916
ret = 1 ;
917
917
goto fail_fw_init ;
918
918
}
919
- dev_info (& instance -> pdev -> dev , "Init cmd success\n" );
920
919
921
920
ret = 0 ;
922
921
@@ -927,6 +926,10 @@ megasas_ioc_init_fusion(struct megasas_instance *instance)
927
926
sizeof (struct MPI2_IOC_INIT_REQUEST ),
928
927
IOCInitMessage , ioc_init_handle );
929
928
fail_get_cmd :
929
+ dev_err (& instance -> pdev -> dev ,
930
+ "Init cmd return status %s for SCSI host %d\n" ,
931
+ ret ? "FAILED" : "SUCCESS" , instance -> host -> host_no );
932
+
930
933
return ret ;
931
934
}
932
935
@@ -4314,9 +4317,6 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason)
4314
4317
megasas_fusion_update_can_queue (instance , OCR_CONTEXT );
4315
4318
4316
4319
if (megasas_ioc_init_fusion (instance )) {
4317
- dev_warn (& instance -> pdev -> dev ,
4318
- "megasas_ioc_init_fusion() failed! for "
4319
- "scsi%d\n" , instance -> host -> host_no );
4320
4320
if (instance -> requestorId && !reason )
4321
4321
goto fail_kill_adapter ;
4322
4322
else
@@ -4362,6 +4362,10 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason)
4362
4362
instance -> instancet -> enable_intr (instance );
4363
4363
atomic_set (& instance -> adprecovery , MEGASAS_HBA_OPERATIONAL );
4364
4364
4365
+ dev_info (& instance -> pdev -> dev , "Interrupts are enabled and"
4366
+ " controller is OPERATIONAL for scsi:%d\n" ,
4367
+ instance -> host -> host_no );
4368
+
4365
4369
/* Restart SR-IOV heartbeat */
4366
4370
if (instance -> requestorId ) {
4367
4371
if (!megasas_sriov_start_heartbeat (instance , 0 ))
@@ -4373,11 +4377,6 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason)
4373
4377
instance -> skip_heartbeat_timer_del = 1 ;
4374
4378
}
4375
4379
4376
- /* Adapter reset completed successfully */
4377
- dev_warn (& instance -> pdev -> dev , "Reset "
4378
- "successful for scsi%d.\n" ,
4379
- instance -> host -> host_no );
4380
-
4381
4380
if (instance -> crash_dump_drv_support &&
4382
4381
instance -> crash_dump_app_support )
4383
4382
megasas_set_crash_dump_params (instance ,
@@ -4387,6 +4386,12 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason)
4387
4386
MR_CRASH_BUF_TURN_OFF );
4388
4387
4389
4388
retval = SUCCESS ;
4389
+
4390
+ /* Adapter reset completed successfully */
4391
+ dev_warn (& instance -> pdev -> dev ,
4392
+ "Reset successful for scsi%d.\n" ,
4393
+ instance -> host -> host_no );
4394
+
4390
4395
goto out ;
4391
4396
}
4392
4397
fail_kill_adapter :
0 commit comments