Commit Graph

5 Commits

Author SHA1 Message Date
Romain Reignier 345e218afd lib_sci: FIX 'for' loop initial declarations are only allowed in C99 or C11 mode 2018-03-12 21:27:50 +01:00
Kimmo Lindholm 9f2ee0a227 SCSI: Respond to TEST UNIT READY command, Fix REQUEST SENSE replying
When host sends TEST UNIT READY command, set sense 'all ok' if block device reports
that medium is inserted, or set sense 'medium not present' if medium is not inserted.

Do not override sense by default with 'all ok', allow REQUEST SENSE command
to be responded with correct sense data which was set on last failure.

Check just DESC bit when responding to REQUEST SENSE command.
2017-10-21 13:36:49 +03:00
Kimmo Lindholm 39487df4de SCSI: Respond to unit serial number inquiry 2017-10-12 00:06:50 +03:00
barthess 92c3714706 USB_MSD. Added READ_FORMAT_CAPACITIES handler 2016-10-28 14:25:08 +03:00
barthess ae0a3ca9de USB_MSD. Initial commit. 2016-10-17 15:53:08 +03:00