SCSI CD-ROM/Disk/MO/ZIP: Treat data commands with request length 0 in ATAPI PIO mode as non-data commands, also allow WIN_SRST to go through BSY, fixes the regressions introduced in build 6731 reported by JVERNET.
This commit is contained in:
@@ -665,7 +665,10 @@ zip_data_command_finish(zip_t *dev, int len, const int block_len,
|
||||
zip_command_write_dma(dev);
|
||||
} else {
|
||||
zip_update_request_length(dev, len, block_len);
|
||||
if (direction == 0)
|
||||
if ((dev->drv->bus_type != ZIP_BUS_SCSI) &&
|
||||
(dev->tf->request_length == 0))
|
||||
zip_command_complete(dev);
|
||||
else if (direction == 0)
|
||||
zip_command_read(dev);
|
||||
else
|
||||
zip_command_write(dev);
|
||||
|
||||
Reference in New Issue
Block a user