OSDN Git Service

usb: gadget: s3c-hsotg: add isochronous transfers support
authorRobert Baldyga <r.baldyga@samsung.com>
Wed, 9 Oct 2013 06:41:57 +0000 (08:41 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 11 Oct 2013 13:45:32 +0000 (08:45 -0500)
commit1479e8411831c2112fa83b44664075e3ceea2533
treed9583826f8490695cd7d5bd6be48c29d7baad942
parent16b972a592ea2c9a3c2a3c12238de650fd4043a9
usb: gadget: s3c-hsotg: add isochronous transfers support

This patch adds isochronous transfer support. It adds few modifications:
- Modify s3c_hsotg_epint() function. Some interrupts are ignored for
  isochronous endpoints, (e.g. INTknTXFEmpMsk) becouse isochronous request is
  always transfered in single transaction, which ends with XferCompl interrupt.
- Add Odd/Even microframe toggle to allow data transfering in each microframe
  in s3c_hsotg_epint() function.
- Fix s3c_hsotg_ep_enable() function by supporting isochronous endpoint type.

Signed-off-by: Robert Baldyga <r.baldyga@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