From: Felipe Balbi Date: Wed, 24 Sep 2014 19:19:52 +0000 (-0500) Subject: usb: dwc3: gadget: fix set_halt() bug with pending transfers X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~17^2~2^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a60855972f0d3c014093046cb6f013a1ee5bb19;p=pandora-kernel.git usb: dwc3: gadget: fix set_halt() bug with pending transfers According to our Gadget Framework API documentation, ->set_halt() *must* return -EAGAIN if we have pending transfers (on either direction) or FIFO isn't empty (on TX endpoints). Fix this bug so that the mass storage gadget can be used without stall=0 parameter. This patch should be backported to all kernels since v3.2. Cc: # v3.2+ Suggested-by: Alan Stern Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed