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

Commit 410604d2 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by James Bottomley
Browse files

[SCSI] sym53c8xx_2: lun to_clear flag not re-initialized (2.6.27.5)



(Resent with proper formatting)

Fix for the sym53c8xx_2 driver to initialize lun's to_clear flag after
a bus reset (a failed clear can trigger a bus reset and it should not
be attemped again after that).

Signed-off-by: default avatarAaro Koskinen <Aaro.Koskinen@nokia.com>
Tested-by: default avatarTony Battersby <tonyb@cybernetics.com>
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 413e6e18
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1896,6 +1896,15 @@ void sym_start_up(struct Scsi_Host *shost, int reason)
		tp->head.sval = 0;
		tp->head.wval = np->rv_scntl3;
		tp->head.uval = 0;
		if (tp->lun0p)
			tp->lun0p->to_clear = 0;
		if (tp->lunmp) {
			int ln;

			for (ln = 1; ln < SYM_CONF_MAX_LUN; ln++)
				if (tp->lunmp[ln])
					tp->lunmp[ln]->to_clear = 0;
		}
	}

	/*