]> git.baikalelectronics.ru Git - kernel.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)
commitaac729ae0f8521debc07199eca962037f947e747
tree92c9daeab81fdba8736c18ae1b2b27e652aa55b5
parent57f9cfccee5b38176e20ea7c150d21b6db88df7c
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