]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: net2280: restore ep_cfg after defect7374 workaround
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Mon, 19 Oct 2015 14:25:15 +0000 (16:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 19:31:20 +0000 (14:31 -0500)
commite3c606d2d0fad088b0c1fd191a9c161a5e48a39a
tree3233b66a2bd22c9798a8c53d467baf0eb5397d50
parent05d7797e1791df0b426d69c8526fea4d10af0b34
usb: gadget: net2280: restore ep_cfg after defect7374 workaround

commit 81e9d14a53eb1abfbe6ac828a87a2deb4702b5f1 upstream.

Defect 7374 workaround enables all GPEP as endpoint 0. Restore
endpoint number when defect 7374 workaround is disabled. Otherwise,
check to match USB endpoint number to hardware endpoint number in
net2280_enable() fails.

Reported-by: Paul Jones <p.jones@teclyn.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/net2280.c