]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6965894ff154a4011d0b6a4cac30349d5945ce2c
treebb8fdeab51b1e580ab3fe91fccf9473c3a17e6cf
parent172fc510e902a65a7787259295d0ee68fb43c70f
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