Page MenuHomeFreeBSD

D49467.1794857025.diff
No OneTemporary

Authored By
Unknown
Size
736 B
Referenced Files
None
Subscribers
None

D49467.1794857025.diff

diff --git a/sys/dev/usb/storage/umass.c b/sys/dev/usb/storage/umass.c
--- a/sys/dev/usb/storage/umass.c
+++ b/sys/dev/usb/storage/umass.c
@@ -2230,6 +2230,13 @@
* command format needed by the specific command set
* and return the converted command in
* "sc->sc_transfer.cmd_data"
+ *
+ * For commands we know the device doesn't support, we
+ * either complete them with an illegal request, or fake
+ * the completion, based on what upper layers tolerate.
+ * Ideally, we'd let the periph drivers know and not
+ * fake things up, but some periphs fall short of the
+ * ideal.
*/
if (umass_std_transform(sc, ccb, cmd, ccb->csio.cdb_len)) {
if (sc->sc_transfer.cmd_data[0] == INQUIRY) {

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 16, 7:23 PM (17 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41786141
Default Alt Text
D49467.1794857025.diff (736 B)

Event Timeline