usb: pch_udc: Fixed issue which does not work with g_serial
authorToshiharu Okada <toshiharu-linux@dsn.okisemi.com>
Wed, 29 Dec 2010 01:07:33 +0000 (10:07 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 02:36:42 +0000 (18:36 -0800)
commitabab0c67c061612cf559ab27ce1340774d7c292d
treebb8fdeab51b1e580ab3fe91fccf9473c3a17e6cf
parent956227120f2e8eed8ca459879d7eafee78591cc1
usb: pch_udc: Fixed issue which does not work with g_serial

This PCH_UDC driver does not work normally when "Serial gadget" is used.
The receiving data of control transmission (EP0 Control OUT Transaction)
has not received correctly.

This patch fixed this issue.
The following was modified.
 - The buffer size.
 - The change processing of a receiving buffer
   (The temporary buffer and the buffer prepared by gadget).
 - The setup processing of a DMA descriptor.

Currently the PCH_UDC driver can work normally with "Serial gadget"
or "File-backed Storage Gadget".

Signed-off-by: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/pch_udc.c