lsi-scsi: Complete a request whose data phase ends early
The script moves op->count * blocksize bytes and then reads the status
byte. If the target transfers less and goes to the status phase
early, e.g. when a tape record is shorter than the buffer, the chip
stops the script with a phase mismatch interrupt. The driver then
gave up with the command still in progress on the bus, so the next
request could not select the target.
On a phase mismatch in the status phase, continue the script at the
status instruction once, so that the status and message bytes are
read and the bus is released. The request still fails unless the
status is GOOD; a caller which needs the residue gets it from the
sense data.
Tested with QEMU's LSI model only.
Signed-off-by: Craig Lalley <mr_lalley@yahoo.com>
Signed-off-by: Helge Deller <deller@gmx.de>
1 file changed