Commit 5f857903 authored by Dmitry Bogdanov's avatar Dmitry Bogdanov Committed by Martin K. Petersen

scsi: qla2xxx: Restore initiator in dual mode

In dual mode in case of disabling the target, the whole port goes offline
and initiator is turned off too.

Fix restoring initiator mode after disabling target in dual mode.

Link: https://lore.kernel.org/r/20210915153239.8035-1-d.bogdanov@yadro.com
Fixes: 0645cb83 ("scsi: qla2xxx: Add mode control for each physical port")
Reviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarDmitry Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent d04a968c
...@@ -7169,7 +7169,8 @@ qla2x00_abort_isp(scsi_qla_host_t *vha) ...@@ -7169,7 +7169,8 @@ qla2x00_abort_isp(scsi_qla_host_t *vha)
return 0; return 0;
break; break;
case QLA2XXX_INI_MODE_DUAL: case QLA2XXX_INI_MODE_DUAL:
if (!qla_dual_mode_enabled(vha)) if (!qla_dual_mode_enabled(vha) &&
!qla_ini_mode_enabled(vha))
return 0; return 0;
break; break;
case QLA2XXX_INI_MODE_ENABLED: case QLA2XXX_INI_MODE_ENABLED:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment