Re: Blocking the submission on urbs to usb core

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Fri, 21 Dec 2007, ashish mahamuni wrote:

> Hello everybody,
> 
> I tried to make my urb submission to secure failure.
> I've made urb->reject=1 in my submit function.
> First time it works fine.
> But in normal condition(i.e. after removing my module)
> the normal functionality of detecting the device goes
> down. Following are the logs.
> 
> USB Core Registration Done......
> Inside my_urb_complete
> Inside my_urb_submit
> Inside my_urb_submit_Error
> Inside my_urb_submit
> Inside my_urb_submit_Error
> <3>hub 1-0:1.0: hub_port_status failed (err = -1)
> 
> The last statement was not printed by me.
> After this no device gets detected.
> How can I overcome this problem

You have to turn urb->reject off again.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.