]> bbs.cooldavid.org Git - net-next-2.6.git/commit
USB: s3c-hsotg: The NPTX/PTX FIFO sizes are in words, not bytes
authorBen Dooks <ben-linux@fluff.org>
Mon, 19 Jul 2010 08:40:41 +0000 (09:40 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:42 +0000 (14:35 -0700)
commit679f9b7c7c7d3c746792138e9d7d76578ef52c41
tree425803386b2fd2fd3220ed92bb4fb44c73f9ab48
parent6d091ee761992f804a1dcd411836ad0abb71be10
USB: s3c-hsotg: The NPTX/PTX FIFO sizes are in words, not bytes

Fix a problem where we have been underestimating the space available in
the IN PTX/NPTX FIFOs by assuming that they where simply word aligned
instead of in number-of-words. This means all length calculations need
to be multiplied-by-4.

Note, we do not change the information about fifo size or start addresses
available to userspace as we assume the user can multiply by four easily
and is already knows these values are in words.

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