patch-2.4.0-test11 linux/drivers/usb/storage/usb.c

Next file: linux/drivers/usb/usb-ohci.c
Previous file: linux/drivers/usb/storage/transport.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/drivers/usb/storage/usb.c linux/drivers/usb/storage/usb.c
@@ -1,6 +1,6 @@
 /* Driver for USB Mass Storage compliant devices
  *
- * $Id: usb.c,v 1.51 2000/10/19 18:49:51 mdharm Exp $
+ * $Id: usb.c,v 1.54 2000/10/31 21:32:10 mdharm Exp $
  *
  * Current development and maintenance by:
  *   (c) 1999, 2000 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
@@ -243,6 +243,7 @@
 			/* handle those devices which can't do a START_STOP */
 			if ((us->srb->cmnd[0] == START_STOP) &&
 			    (us->flags & US_FL_START_STOP)) {
+				US_DEBUGP("Skipping START_STOP command\n");
 				us->srb->result = GOOD << 1;
 
 				set_current_state(TASK_INTERRUPTIBLE);
@@ -311,11 +312,15 @@
 			US_DEBUGP("-- US_ACT_EXIT command recieved\n");
 			break;
 		}
+
+		set_current_state(TASK_INTERRUPTIBLE);
 	} /* for (;;) */
 
 	/* notify the exit routine that we're actually exiting now */
 	up(&(us->notify));
 
+	remove_wait_queue(&(us->wqh), &wait);
+
 	return 0;
 }	
 
@@ -423,8 +428,8 @@
 	{ 0x054c, 0x002d, 0x0100, 0x0100, 
 		"Sony",
 		"Memorystick MSAC-US1",
-		US_SC_SCSI, US_PR_CB, NULL,
-		US_FL_SINGLE_LUN | US_FL_START_STOP | US_FL_MODE_XLATE },
+		US_SC_UFI, US_PR_CB, NULL,
+		US_FL_SINGLE_LUN | US_FL_START_STOP },
 
 	{ 0x057b, 0x0000, 0x0000, 0x0299, 
 		"Y-E Data",
@@ -504,7 +509,7 @@
 		US_FL_SCM_MULT_TARG }, 
 
 #ifdef CONFIG_USB_STORAGE_FREECOM
-        { 0x07ab, 0xfc01, 0x0921, 0x0921,
+        { 0x07ab, 0xfc01, 0x0000, 0x9999,
                 "Freecom",
                 "USB-IDE",
                 US_SC_QIC, US_PR_FREECOM, freecom_init, 0},
@@ -754,7 +759,7 @@
 	/*
 	 * Now check if we have seen this GUID before
 	 * We're looking for a device with a matching GUID that isn't
-	 * allready on the system
+	 * already on the system
 	 */
 	ss = us_list;
 	while ((ss != NULL) && 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)