usb: r8a66597-udc buffer management update
authorMagnus Damm <damm@igel.co.jp>
Wed, 19 Aug 2009 14:19:08 +0000 (14:19 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 20 Aug 2009 01:30:44 +0000 (10:30 +0900)
This patch updates the r8a66597-udc buffer management code.

Use fixed buffers for bulk and isochronous pipes, also make
sure to handle the isochronous-as-bulk case. With fixed buffers
there is no need to keep track of used buffers with bi_bufnum.

Also, this fixes a potential buffer offset problem where the
base offset incorrectly varies with the number of pipes used.

The m66592 driver recently got fixed in a similar way.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

No differences found