scsi: qla2xxx: Restore initiator in dual mode
authorDmitry Bogdanov <d.bogdanov@yadro.com>
Wed, 15 Sep 2021 15:32:39 +0000 (18:32 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Sep 2021 03:58:57 +0000 (23:58 -0400)
commit5f8579038842d77e6ce05e1df6bf9dd493b0e3ef
tree6e325a7f87c13a2df7fa40960456850beaf3a62e
parentd04a968c33684b15d1206e23fc1119ce0f0587fb
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: 0645cb8350cd ("scsi: qla2xxx: Add mode control for each physical port")
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c