usb: gadget: net2280: reset sequence number on ep enable
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Sat, 16 May 2015 20:33:31 +0000 (22:33 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 May 2015 15:39:52 +0000 (10:39 -0500)
commite6ac4bb0590d6482f48a86a10884a9f2eb66c111
treeeb8365d5243c888ae1b75e60da79a6832114fe91
parent25d40ee8189531d9df3ff10e25ddb92b5f075343
usb: gadget: net2280: reset sequence number on ep enable

Sequence number can be out of sync if endpoint is disabled after some
data transfers and enabled again. Reset it to stay in sync with host.

Tested-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/net2280.c