usb: musb: gadget: complete request only if data is transfered over
authorMing Lei <tom.leiming@gmail.com>
Mon, 20 Sep 2010 07:32:05 +0000 (10:32 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 24 Sep 2010 18:05:01 +0000 (11:05 -0700)
commitbb27bc2c1133372b54d00f3077ea4acbbf459045
tree513f4619c3938b98b0e6ba9ad40611f7b2d0f39e
parent1018b4e44f4f191c6e3c631c4eee35d0a112d32b
usb: musb: gadget: complete request only if data is transfered over

Complete the current request only if the data transfer is over.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Anand Gadiyar <gadiyar@ti.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_gadget.c