Javier-Elias Vasquez-Vivas wrote:
> Here it goes the output now that I recompiled the kernel with the
> patch applied and enabling the debug for mass storage...  It's
> attached...

> usb-storage: INIT 3
> usb-storage: usb_stor_ctrl_transfer: rq=41 rqtype=40 value=a117 index=00 len=0
> usb-storage: Status code 0; transferred 0/0
> usb-storage: -- transfer complete
> usb-storage: usb_stor_ctrl_transfer: rq=40 rqtype=c0 value=0017 index=00 len=1
> usb-storage: Status code 0; transferred 1/1
> usb-storage: -- transfer complete
> usb-storage: usbat_get_status: 0xA1
> usb-storage: usbat_identify_device: Detected Flash reader/writer

Odd, it didn't seem to execute the command. Maybe it wasn't ready. Please
apply this patch on top of the last one, and send me the new output.

Thanks,
Daniel
--- linux/drivers/usb/storage/shuttle_usbat.c.orig	2005-07-08 17:28:04.000000000 +0100
+++ linux/drivers/usb/storage/shuttle_usbat.c	2005-07-08 17:28:34.000000000 +0100
@@ -842,6 +842,7 @@ static int usbat_identify_device(struct 
 	 * devices (ATA), this will result in an error. On packet devices (ATAPI), this
 	 * will return successfully.
 	 */
+	usbat_get_status(us, &status);
 	rc = usbat_write(us, USBAT_ATA, USBAT_ATA_CMD, 0xA1);
 	if (rc != USB_STOR_XFER_GOOD)
 		return USB_STOR_TRANSPORT_ERROR;

Reply via email to