[linux-usb-devel] Question regarding short transfers

2007-05-22 Thread Curran, Dominic
Hi I have two questions regarding short transfers. My questions are best illustrated by a scenario: Lets say the Hosts Mass Storage driver wants to READ 12K: I believe that the Host Controller driver (e.g. ehci_hcd) might see something like this coming from usbcore: 1) BULK OUT urb (31 bytes)

Re: [linux-usb-devel] Question regarding short transfers

2007-05-22 Thread Alan Stern
On Tue, 22 May 2007, Curran, Dominic wrote: Hi I have two questions regarding short transfers. My questions are best illustrated by a scenario: Lets say the Hosts Mass Storage driver wants to READ 12K: I believe that the Host Controller driver (e.g. ehci_hcd) might see something like

Re: [linux-usb-devel] Question regarding short transfers

2007-05-22 Thread David Brownell
On Tuesday 22 May 2007, Alan Stern wrote: On Tue, 22 May 2007, Curran, Dominic wrote: Lets say the Hosts Mass Storage driver wants to READ 12K: I believe that the Host Controller driver (e.g. ehci_hcd) might see something like this coming from usbcore: 1) BULK OUT urb (31

Re: [linux-usb-devel] Question regarding short transfers

2007-05-22 Thread Alan Stern
On Tue, 22 May 2007, David Brownell wrote: 2) What happens if the device terminates the transfer during the 4KB (after say 3700 bytes received, with a short packet)? Thus: urb-transfer_buffer_length = 4096 urb-actual_length = 3700 I believe that the HC driver

Re: [linux-usb-devel] Question regarding short transfers

2007-05-22 Thread David Brownell
On Tuesday 22 May 2007, Alan Stern wrote: On Tue, 22 May 2007, David Brownell wrote: 2) What happens if the device terminates the transfer during the 4KB (after say 3700 bytes received, with a short packet)? Thus: urb-transfer_buffer_length = 4096 urb-actual_length