Re: dummy_hcd: try to add qh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/27/2012 04:26 AM, Alan Stern wrote:
On Sat, 27 Oct 2012, Sebastian Andrzej Siewior wrote:

I tried to add the qh structure. It is likely that patch #1 isn't 100%
checkpatch clear. If we agree on #3 then I go and clean it up.

Sorry, I've forgotten the context for this change.  (We discussed
something and I suggested the right solution would be to add an
endpoint-specific data structure like a QH on the host side, but I
can't remember the details.)

Remind me please, what is the problem you need to solve?

Sure. rmmod g_ncm after ifconfig usb[01] resulted in a busy loop. The
problem was that the gadget side disabled endpoints and the host side
had requests queued. The timer found a request and gave it back with
-EPROTO because it did not find an endpoint (it was disabled). The give
back of the INT packet resulted in a re-queue. So we had another
request in the queue to process and because we did not find an endpoint
we gave it back with -EPROTO and the INT packet …


Alan Stern


Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux