And here is the change (relative to the previous patch) to the SDDR09
driver which accepts an ALLOW_MEDIUM_REMOVAL command (and does nothing
with it except put out a debug message).
It's in CVS, and here is the patch.
--Rob
--- sddr09.c.orig Tue Mar 27 17:28:34 2001
+++ sddr09.c Tue Mar 27 17:37:55 2001
@@ -1,6 +1,6 @@
/* Driver for SanDisk SDDR-09 SmartMedia reader
*
- * $Id: sddr09.c,v 1.15 2001/03/27 22:09:17 groovyjava Exp $
+ * $Id: sddr09.c,v 1.16 2001/03/27 22:37:55 groovyjava Exp $
*
* SDDR09 driver v0.1:
*
@@ -920,6 +920,17 @@
// FIXME: sense buffer?
return USB_STOR_TRANSPORT_ERROR;
+
}
+
+
if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) {
+
+
US_DEBUGP(
+
"SDDR09: %s medium removal. Not that I can do"
+
" anything about it...\n",
+
(srb->cmnd[4]&0x03) ? "Prevent" : "Allow");
+
+
return USB_STOR_TRANSPORT_GOOD;
+
}
if (srb->cmnd[0] == READ_10) {
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel