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:
@@ -584,7 +584,10 @@ mo_data_command_finish(mo_t *dev, int len, const int block_len,
|
||||
mo_command_write_dma(dev);
|
||||
} else {
|
||||
mo_update_request_length(dev, len, block_len);
|
||||
if (direction == 0)
|
||||
if ((dev->drv->bus_type != MO_BUS_SCSI) &&
|
||||
(dev->tf->request_length == 0))
|
||||
mo_command_complete(dev);
|
||||
else if (direction == 0)
|
||||
mo_command_read(dev);
|
||||
else
|
||||
mo_command_write(dev);
|
||||
|
||||
Reference in New Issue
Block a user