Scsi RESERVATION CONFLICT and BUSY support for Tekram scsi cards.

Checked with DC390.  Pls mail me if you have any trouble with this patch.
This commit is contained in:
itojun 1997-08-30 05:49:20 +00:00
parent 673592ad96
commit b48ed8a31a

View File

@ -1176,6 +1176,20 @@ SRBdone( PACB pACB, PDCB pDCB, PSRB pSRB )
pSRB->TargetStatus = 0;
pcmd->error = XS_TIMEOUT;
}
else if (status == SCSI_STAT_BUSY)
{
#ifdef DC390_DEBUG0
printf("DC390: target busy at %s %d\n", __FILE__, __LINE__);
#endif
pcmd->error = XS_BUSY;
}
else if (status == SCSI_STAT_RESCONFLICT)
{
#ifdef DC390_DEBUG0
printf("DC390: target reserved at %s %d\n", __FILE__, __LINE__);
#endif
pcmd->error = XS_BUSY; /*XXX*/
}
else
{
pSRB->AdaptStatus = 0;
@ -1193,6 +1207,9 @@ SRBdone( PACB pACB, PDCB pDCB, PSRB pSRB )
}
else
{
#ifdef DC390_DEBUG0
printf("DC390: driver stuffup at %s %d\n", __FILE__, __LINE__);
#endif
pcmd->error = XS_DRIVER_STUFFUP;
}
}
@ -1207,6 +1224,9 @@ SRBdone( PACB pACB, PDCB pDCB, PSRB pSRB )
}
else if( pSRB->SRBStatus & PARITY_ERROR)
{
#ifdef DC390_DEBUG0
printf("DC390: driver stuffup %s %d\n", __FILE__, __LINE__);
#endif
pcmd->error = XS_DRIVER_STUFFUP;
}
else /* No error */