Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8dd7e3a5 authored by Joe Carnuccio's avatar Joe Carnuccio Committed by James Bottomley
Browse files

qla2xxx: Pause risc before manipulating risc semaphore.

parent cc790764
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1282,6 +1282,9 @@ qla25xx_manipulate_risc_semaphore(scsi_qla_host_t *vha)
	    vha->hw->pdev->subsystem_device != 0x0240)
	    vha->hw->pdev->subsystem_device != 0x0240)
		return;
		return;


	WRT_REG_DWORD(&vha->hw->iobase->isp24.hccr, HCCRX_SET_RISC_PAUSE);
	udelay(100);

attempt:
attempt:
	timeout_msec = TIMEOUT_SEMAPHORE;
	timeout_msec = TIMEOUT_SEMAPHORE;
	n = timeout_msec / delta_msec;
	n = timeout_msec / delta_msec;