Hi Alan,

Now, I write 8 Blocks i.e, 4096 bytes of data still
SCSI WRITE_10 fails. Below listed are the traces. Do
you see anything suspicious here.

usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command WRITE_10 (10 bytes)
usb-storage: 2a 00 00 00 00 21 00 00 08 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x7c Trg 0
LUN 0 L 4096 F 0 CL 10
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 4096
bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred
4096/4096
usb-storage: usb_stor_transfer_partial(): transfer
complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: command_abort() called
usb-storage: Bulk status result = -104
usb-storage: -- transport indicates error, resetting
usb-storage: Bulk reset requested
uhci.c: uhci_submit_urb: urb not available to submit
(status = -104)
usb-storage: usb_stor_clear_halt: result=-22
uhci.c: uhci_submit_urb: urb not available to submit
(status = -104)
usb-storage: usb_stor_clear_halt: result=-22
usb-storage: Bulk soft reset completed
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.

Regards,
Phani
--- Alan Stern <[EMAIL PROTECTED]> wrote:

> On Fri, 10 Sep 2004, Phani Babu G. wrote:
> 
> > Hi All,
> >  
> > I am having problems writig data to a  64 MB
> direct
> > access device (LEXAR make). I use SG_IO ioctl
> provided
> > by SCSI Generic (sg) to access the USB Mass
> Storage
> > device. After issuing WRITE_10 command the SCSI
> genric
> > driver freezes. The linux kernel version is
> 2.4.20. On
> > the other hand SCSI READ_10 commands succeed using
> the
> > same ioctl.
> >  
> > Traces..........
> >  
> > usb-storage: queuecommand() called
> > usb-storage: *** thread awakened.
> > usb-storage: Command WRITE_10 (10 bytes)
> > usb-storage: 2a 00 00 00 00 00 00 00 08 00 00 00
> > usb-storage: Bulk command S 0x43425355 T 0x86 Trg
> 0
> > LUN 0 L 512 F 0 CL 10
> 
> Your WRITE(10) command has a transfer length of 8
> blocks (the eighth and
> ninth bytes in the command block above), but you
> have specified a total
> transfer length of 512 bytes or just one block (the
> L 512 above).  No
> wonder the device doesn't like it!  Either the total
> transfer length
> should be changed 4096 bytes or the ninth command
> byte should be changed
> to 0x01.
> 
> Alan Stern
> 
> 
> 
>
-------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE.
> Be one of 170
> Project Admins to receive an Apple iPod Mini FREE
> for your judgement on
> who ports your project to Linux PPC the best.
> Sponsored by IBM. 
> Deadline: Sept. 13. Go here:
> http://sf.net/ppc_contest.php
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
>
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
> 



                
_______________________________
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to