usb:hsotg:samsung: NAK management for EP0 (Setup stage of control transfers)
authorLukasz Majewski <l.majewski@samsung.com>
Fri, 4 May 2012 12:17:03 +0000 (14:17 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 4 May 2012 12:53:12 +0000 (15:53 +0300)
commit71225beeeba2bde80aac02fadb5c197389fa12e4
treed019445bd250e0bbcaea834c0f1b680dc9eef526
parentfc9a731ed0ef7138432f0f14981710aea8e83320
usb:hsotg:samsung: NAK management for EP0 (Setup stage of control transfers)

For SETUP stage of USB control transmission, the NAK shall NOT be
CLEAR.

The SNAK/CNAK control is crucial for this type of driver,
since data arrives to earlier defined requests.

Tested with:
- DFU gadget (various size of the sent data - also packet = MPS)
- Ethernet gadget (CDC and RNDIS)
- Multi Function Gadget (g_multi)

HW:
- Samsung's C210 Universal rev.0

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c-hsotg.c