From: Mian Yousaf Kaukab Date: Fri, 9 Jan 2015 12:38:58 +0000 (+0100) Subject: usb: dwc2: gadget: manage ep0 state in software X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~86^2^2~125 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe0b94abcdf6d80bd575e91baf1e0f85a4978d49;p=pandora-kernel.git usb: dwc2: gadget: manage ep0 state in software Manage ep0 state in software to add handling of status OUT stage. Just toggling hsotg->setup in s3c_hsotg_handle_outdone leaves it in wrong state in 2-stage control transfers. Moreover, ensure that for setup-packet s3c_hsotg_handle_outdone is called either from SetupDone or OutDone but not both. Dwc2 ip v3.00a generates both SetupDone and OutDone on setup packets. Tested-by: Robert Baldyga Acked-by: Paul Zimmerman Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed