]> xenbits.xensource.com Git - seabios.git/commit
Use OUT mode for all zero byte "scsi" transfers.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 15 Mar 2012 01:27:45 +0000 (21:27 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 15 Mar 2012 01:27:45 +0000 (21:27 -0400)
commit1fd9a89082b807a4bb4ab6ce1285df474cb75746
tree5c25ce9828b4445d41aba429b5dfbc24f633dd89
parent7a08ae75c4d068364e4b2f04b4a718bea2621255
Use OUT mode for all zero byte "scsi" transfers.

Some devices can get confused if asked to "read" data during a zero
byte transfer, so consider these transfers as "writes".  (Reported by
Steve Goodrich.)

Also, extract out the code to determine the transfer direction into
cdb_is_read().

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/blockcmd.c
src/blockcmd.h
src/usb-msc.c
src/virtio-scsi.c