From: Saurav Kashyap Date: Fri, 11 Apr 2014 20:54:06 +0000 (-0400) Subject: qla2xxx: Wait for reset completion without lock for ISPFX00. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec1937a21ba193b489f669484e2180b9e08f0c7f;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git qla2xxx: Wait for reset completion without lock for ISPFX00. Signed-off-by: Giridhar Malavali Signed-off-by: Saurav Kashyap Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c index 0aaf6a9c87d3..c1df39a81b3c 100644 --- a/drivers/scsi/qla2xxx/qla_mr.c +++ b/drivers/scsi/qla2xxx/qla_mr.c @@ -572,12 +572,13 @@ qlafx00_soc_cpu_reset(scsi_qla_host_t *vha) /* Kick in Core0 to start boot process */ QLAFX00_SET_HBA_SOC_REG(ha, SOC_SW_RST_CONTROL_REG_CORE0, (0xF00)); + spin_unlock_irqrestore(&ha->hardware_lock, flags); + /* Wait 10secs for soft-reset to complete. */ for (cnt = 10; cnt; cnt--) { msleep(1000); barrier(); } - spin_unlock_irqrestore(&ha->hardware_lock, flags); } /**