usb: gadget: udc: atmel: change setting for DMA
authorBo Shen <voice.shen@atmel.com>
Wed, 17 Dec 2014 09:18:48 +0000 (17:18 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 22 Dec 2014 16:41:05 +0000 (10:41 -0600)
commitf40afdddeb6c54ffd1e2920a5e93e363d6748db6
tree2bd28b3ce30df56e1d8b0d909beec2efa1d0c341
parent84a2b61b6eb94036093531cdabc448dddfbae45a
usb: gadget: udc: atmel: change setting for DMA

According to the datasheet, when transfer using DMA, the control
setting for IN packet only need END_BUF_EN, END_BUF_IE, CH_EN,
while for OUT packet, need more two bits END_TR_EN and END_TR_IE
to be configured.

Fixes: 914a3f3b3754 (USB: add atmel_usba_udc driver)
Cc: <stable@vger.kernel.org> # 2.6.24+
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/atmel_usba_udc.c