Re: [RFC/PATCH] gadget/composite: push set interface & set config into process context

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

 



On 02/05/2012 04:36 AM, Chen Peter-B29397 wrote:

You can use a synchronous workqueue for setup and disconnect. This makes
sure the setup request and disconnect are executed in the same order as
it was seen by the UDC. So you enqueue the setup packet followed by the
disconnect. First you process the setup packet after that notify the
disconnect and put your udc into suspend.

How udc knows the disconnect has finished?  suspend need to be called by udc.

Well, if you enqueue worker item and call in process context disconnect
of the gadget then you know when it is done once the function returns.

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