On Wed, Mar 13, 2013 at 01:37:35PM +0800, Xiaofan Chen wrote:
> On Tue, Mar 12, 2013 at 2:10 PM, Marcus Meissner <meiss...@suse.de> wrote:
> > On Mon, Mar 11, 2013 at 03:30:19PM -0700, Sarah Sharp wrote:
> >> On Sat, Mar 09, 2013 at 09:16:53PM +0100, Marcus Meissner wrote:
> >> > On Thu, Feb 28, 2013 at 09:32:05AM -0800, Sarah Sharp wrote:
> >> > > On Thu, Feb 28, 2013 at 04:59:36PM +0100, Marcus Meissner wrote:
> >> > I am removing the clear halt calls for now, as I dont even remember for
> >> > which camera they were ... the problem might even be fixed otherwise.
> >> >
> >> > With my own USB 3 host controller that resolved the problem now for me.
> >>
> >> Can you leave the calls to clear the halt in, but just ignore the return
> >> value?  Or does simply calling the function cause other issues?  If so,
> >> that would indicate a deeper issue with the xHCI driver or host.
> >
> > Simply calling them causes the issue. :/
> 
> What is your USB 3.0 host controller?
> 
> I just read the Cypress USBSuite Windows Driver and Utility 1.2.2 Release
> Notes and it states the following.
> "ASMedia xHCI controller behavior is unpredictable when it receives
> STALL packet, due to this sometimes the CyControl.exe will not show
> the FX3 devices in the list view despite it being enumerated on the USB bus."

Actually, I think it's more generic than that.  usb_clear_halt() submits
a control transfer to reset the toggle bits, and then it calls into
usb_reset_endpoint().  The xHCI driver will then refuse to queue the
Reset Endpoint command.  At that point, the device endpoint toggle bits
are out-of-sync with the host toggle state, and any attempt to
communicate with it will probably result in transfer errors.

Ok, this is moving farther up my to do list, and I'll see if I can get a
patch to you.  Marcus, I would suggest leaving the clear halt in your
code, and we'll just fix the kernel instead.

Sarah

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to