]> bbs.cooldavid.org Git - net-next-2.6.git/commit
USB: s3c-hsotg: Avoid overwriting contents of perodic in 'fifo'
authorBen Dooks <ben-linux@fluff.org>
Mon, 19 Jul 2010 08:40:42 +0000 (09:40 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:42 +0000 (14:35 -0700)
commite7a9ff54271bf0ddbf641e5a0bde3ebda35808be
tree92c9daeab81fdba8736c18ae1b2b27e652aa55b5
parent679f9b7c7c7d3c746792138e9d7d76578ef52c41
USB: s3c-hsotg: Avoid overwriting contents of perodic in 'fifo'

In shared fifo mode (used on older SoCs) the periodic in fifo beahves
much more like a packet buffer, discarding old data when writing new
data. Avoid this by ensuring that we do not load new transactions in
when there is data sitting already in the FIFO.

Note, this may not be an observed bug, we are fixing the case that this
may happen.

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