From: Mian Yousaf Kaukab Date: Sat, 16 May 2015 20:33:36 +0000 (+0200) Subject: usb: gadget: net2280: fix use of GPEP in both directions X-Git-Tag: omap-for-v4.2/fixes-rc1^2~90^2~16^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c65c4f052bc3b67989bf54914798513685c54988;p=pandora-kernel.git usb: gadget: net2280: fix use of GPEP in both directions USB3380 enhanced mode allows GPEP to be used in both IN and OUT directions. However, IN and OUT endpoints must use same USB endpoint address (bEndpointAddress). Fix this by setting the ep_cfg.ep_number during initialization and keep it in net2280_enable() Tested-by: Ricardo Ribalda Delgado Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed