Re: [linux-usb-devel] USB mass storage stopped working in 2.6?
YES! It works! Thank you very much! --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
[linux-usb-devel] USB mass storage stopped working in 2.6?
I installed the 2.6 kernel to test it and I have some problems with the USB mass storage driver: my external HD enclousure doesn't work anymore (the device works perfectly with the 2.4.21 version). My computer is an Acer TravelMate 521TE with an ALI USB 1.1 controller, the device is an USB2 2.5 HD enclousure. When I plug it the kernel detects it, but it gives a lots of errors and I can't access the drive content. I've tested it with the 2.6.0-test2 kernel version, attached there are the lsusb output (from 2.4.21) for the device and the kernel log (compiled with usb mass storage debug enabled). Thank you in advance. Alessandro Fiorino Bus 001 Device 002: ID 05e3:0702 Genesys Logic, Inc. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 Interface bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x05e3 Genesys Logic, Inc. idProduct 0x0702 bcdDevice 0.02 iManufacturer 0 iProduct 1 USB TO IDE iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 33 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 96mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type none wMaxPacketSize 64 bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type none wMaxPacketSize 64 bInterval 0 junk at config descriptor end: 04 Language IDs: (length=4) 0409 English(US) drivers/usb/core/usb.c: registered new driver usbfs drivers/usb/core/usb.c: registered new driver hub ohci-hcd: 2003 Feb 24 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ohci-hcd: block sizes: ed 64 td 64 ohci-hcd :00:14.0: ALi Corporation USB 1.1 Controller ohci-hcd :00:14.0: irq 11, pci mem cc824000 ohci-hcd :00:14.0: new USB bus registered, assigned bus number 1 hub 1-0:0: USB hub found hub 1-0:0: 2 ports detected drivers/usb/core/usb.c: registered new driver hiddev drivers/usb/core/usb.c: registered new driver hid drivers/usb/input/hid-core.c: v2.0:USB HID core driver hub 1-0:0: debounce: port 1: delay 100ms stable 4 status 0x101 hub 1-0:0: new USB device on port 1, assigned address 2 Initializing USB Mass Storage driver... usb-storage: USB Mass Storage device detected usb-storage: act_altsetting is 0, id_index is 96 usb-storage: -- associate_dev usb-storage: Transport: Bulk usb-storage: Protocol: Transparent SCSI usb-storage: Endpoints: In: 0xc8a492e0 Out: 0xc8a492f4 Int: 0x (Period 0) usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value= index=00 len=1 usb-storage: GetMaxLUN command result is 1, data is 0 usb-storage: *** thread sleeping. scsi1 : SCSI emulation for USB Mass Storage devices usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 24 00 usb-storage: Bulk command S 0x43425355 T 0x3 Trg 0 LUN 0 L 36 F 128 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes usb-storage: Status code 0; transferred 36/36 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x3 R 0 Stat 0x0 usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 25 00 usb-storage: Bulk command S 0x43425355 T 0x4 Trg 0 LUN 0 L 37 F 128 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 37 bytes usb-storage: Status code 0; transferred 36/37 usb-storage: -- short transfer usb-storage: Bulk data transfer result 0x1 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x4 R 0 Stat 0x0 usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread
Re: [linux-usb-devel] USB mass storage stopped working in 2.6?
On 8 Aug 2003, Alessandro Fiorino wrote: I installed the 2.6 kernel to test it and I have some problems with the USB mass storage driver: my external HD enclousure doesn't work anymore (the device works perfectly with the 2.4.21 version). My computer is an Acer TravelMate 521TE with an ALI USB 1.1 controller, the device is an USB2 2.5 HD enclousure. When I plug it the kernel detects it, but it gives a lots of errors and I can't access the drive content. I've tested it with the 2.6.0-test2 kernel version, attached there are the lsusb output (from 2.4.21) for the device and the kernel log (compiled with usb mass storage debug enabled). I have submitted a patch to the SCSI people, but haven't heard back from them about it. It applies to 2.6.0; maybe it will fix your problem. Please try it out and let us know what happens. Alan Stern = sd.c 1.52 vs edited = --- 1.52/drivers/scsi/sd.c Tue Jul 1 17:54:19 2003 +++ edited/drivers/scsi/sd.cThu Jul 31 11:05:01 2003 @@ -1080,6 +1080,7 @@ sd_read_write_protect_flag(struct scsi_disk *sdkp, char *diskname, struct scsi_request *SRpnt, unsigned char *buffer) { int res; + const int dbd = 0; /* Some devices don't like DBD */ struct scsi_mode_data data; /* @@ -1087,7 +1088,7 @@ * We have to start carefully: some devices hang if we ask * for more than is available. */ - res = sd_do_mode_sense(SRpnt, 0, 0x3F, buffer, 4, data); + res = sd_do_mode_sense(SRpnt, dbd, 0x3F, buffer, 4, data); /* * Second attempt: ask for page 0 @@ -1095,13 +1096,13 @@ * Sense Key 5: Illegal Request, Sense Code 24: Invalid field in CDB. */ if (!scsi_status_is_good(res)) - res = sd_do_mode_sense(SRpnt, 0, 0, buffer, 4, data); + res = sd_do_mode_sense(SRpnt, dbd, 0, buffer, 4, data); /* * Third attempt: ask 255 bytes, as we did earlier. */ if (!scsi_status_is_good(res)) - res = sd_do_mode_sense(SRpnt, 0, 0x3F, buffer, 255, data); + res = sd_do_mode_sense(SRpnt, dbd, 0x3F, buffer, 255, data); if (!scsi_status_is_good(res)) { printk(KERN_WARNING @@ -1124,7 +1125,7 @@ struct scsi_request *SRpnt, unsigned char *buffer) { int len = 0, res; - const int dbd = 0; /* DBD */ + const int dbd = 0; /* Some devices don't like DBD */ const int modepage = 0x08; /* current values, cache page */ struct scsi_mode_data data; @@ -1134,10 +1135,11 @@ if (scsi_status_is_good(res)) { /* that went OK, now ask for the proper length */ - len = data.length; - if (len 128) - len = 128; - res = sd_do_mode_sense(SRpnt, dbd, modepage, buffer, + len = data.header_length + data.block_descriptor_length + 4; + if (len 512) + res = SAM_STAT_BUSY; + else + res = sd_do_mode_sense(SRpnt, dbd, modepage, buffer, len, data); } --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
[linux-usb-devel] USB mass storage stopped working in 2.6?
I installed the 2.6 kernel to test it and I have some problems with the USB mass storage driver: my external HD enclousure doesn't work anymore (the device works perfectly with the 2.4.21 version). My computer is an Acer TravelMate 521TE with an ALI USB 1.1 controller, the device is an USB2 2.5 HD enclousure. When I plug it the kernel detects it, but it gives a lots of errors and I can't access the drive content. I've tested it with the 2.6.0-test2 kernel version, attached there are the lsusb output (from 2.4.21) for the device and the kernel log (compiled with usb mass storage debug enabled). Thank you in advance. Alessandro Fiorino Bus 001 Device 002: ID 05e3:0702 Genesys Logic, Inc. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 Interface bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x05e3 Genesys Logic, Inc. idProduct 0x0702 bcdDevice 0.02 iManufacturer 0 iProduct 1 USB TO IDE iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 33 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 96mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type none wMaxPacketSize 64 bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type none wMaxPacketSize 64 bInterval 0 junk at config descriptor end: 04 Language IDs: (length=4) 0409 English(US) drivers/usb/core/usb.c: registered new driver usbfs drivers/usb/core/usb.c: registered new driver hub ohci-hcd: 2003 Feb 24 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ohci-hcd: block sizes: ed 64 td 64 ohci-hcd :00:14.0: ALi Corporation USB 1.1 Controller ohci-hcd :00:14.0: irq 11, pci mem cc824000 ohci-hcd :00:14.0: new USB bus registered, assigned bus number 1 hub 1-0:0: USB hub found hub 1-0:0: 2 ports detected drivers/usb/core/usb.c: registered new driver hiddev drivers/usb/core/usb.c: registered new driver hid drivers/usb/input/hid-core.c: v2.0:USB HID core driver hub 1-0:0: debounce: port 1: delay 100ms stable 4 status 0x101 hub 1-0:0: new USB device on port 1, assigned address 2 Initializing USB Mass Storage driver... usb-storage: USB Mass Storage device detected usb-storage: act_altsetting is 0, id_index is 96 usb-storage: -- associate_dev usb-storage: Transport: Bulk usb-storage: Protocol: Transparent SCSI usb-storage: Endpoints: In: 0xc8a492e0 Out: 0xc8a492f4 Int: 0x (Period 0) usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value= index=00 len=1 usb-storage: GetMaxLUN command result is 1, data is 0 usb-storage: *** thread sleeping. scsi1 : SCSI emulation for USB Mass Storage devices usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 24 00 usb-storage: Bulk command S 0x43425355 T 0x3 Trg 0 LUN 0 L 36 F 128 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes usb-storage: Status code 0; transferred 36/36 usb-storage: -- transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x3 R 0 Stat 0x0 usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 25 00 usb-storage: Bulk command S 0x43425355 T 0x4 Trg 0 LUN 0 L 37 F 128 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 37 bytes usb-storage: Status code 0; transferred 36/37 usb-storage: -- short transfer usb-storage: Bulk data transfer result 0x1 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x4 R 0 Stat 0x0 usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread