]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
USB-CDC: handle interrupt after dropped pullup
authorVitaly Kuzmichev <vkuzmichev@mvista.com>
Fri, 11 Feb 2011 15:18:31 +0000 (18:18 +0300)
committerRemy Bohmer <linux@bohmer.net>
Sat, 19 Feb 2011 19:32:36 +0000 (20:32 +0100)
commitb3649f3bbfdb2686eceb40a629cef8d4d257f5fa
tree8b7d947e655a37f888a7bc55793c5c1b45264891
parent9b70e00773f0c76a243816b8ec134c3c7dacd531
USB-CDC: handle interrupt after dropped pullup

Disconnecting USB gadget with pending interrupt may cause its wrong
handling in the next time when interface will be started again
(especially actual for RNDIS). This interrupt may force the gadget
to queue unexpected response before setup stage.
Despite the fact that such interrupt handled after dropped pullup
also may add pending response, this will not bring to any issues due to
usb_ep_disable (which clears the queue) called on gadget unregistering.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
drivers/usb/gadget/ether.c