USB: s3c-hsotg: Only load packet per fifo write
authorBen Dooks <ben-linux@fluff.org>
Mon, 19 Jul 2010 08:40:45 +0000 (09:40 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:42 +0000 (14:35 -0700)
commit03e10e5ab5ba6511ddaf80085cf08c62e9336fa5
treeef2bce4b63f9ba1811b8ef89bc8b08d85b01e838
parent10aebc772a10c95e30dff0779cb0f879b8f1554f
USB: s3c-hsotg: Only load packet per fifo write

Limit the IN FIFO write to a single packet per attempt at writing,
as per the specifications and ensure that we don't return fifo-full
so that we can continue writing packets if we have the space.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/s3c-hsotg.c