On Sat, Apr 14, 2007 at 12:39:46PM +1000, Julian PG wrote:
> Hi,
> Is it possible to be able to pass usb BULK messages (READ/WRITE) directly to a
> device while its already been claimed by a driver?
From userspace, or from within another driver in the kernel?
> Is it trivial to add support for this?I understand that this can
> already be done with CONTROL messages. However it doesnt seem so with
> BULK.
That is because the control endpoint is not "owned" by any driver, but
the bulk ones are.
> It would an advantage for us to have this support included in usbfs,
> specifically for a tool like usbreplay
> http://mcentral.de/wiki/index.php/Usbreplay.
> By replaying windows usb logs back to the device under linux, while trouble
> shooting/developing drivers that are already loaded for the device, as you
> know it makes it possible to get usb devices supported quickly.
How would adding such a function to the kernel allow this to work any
easier? You want to try to talk to a device at the same time another
driver is controling it? That's a recipe for disaster...
thanks,
greg k-h