Re: [PATCH] usb: gadget: fsl_udc_core: remove mapped flag

2012-09-06 Thread Enrico Scholz
Chen Peter-B29397 writes: > If the class driver has already mapped this address, the req->req.dma is not > DMA_ADDR_INVALID either, in this case, the dma_sync_single_for_cpu is > enough. ok; forget the patch then. Thanks Enrico ___ Linuxppc-dev maili

Re: [PATCH] usb: gadget: fsl_udc_core: do not immediatly prime STATUS for IN xfer

2012-09-06 Thread Enrico Scholz
Felipe Balbi writes: >> > Because the fsl_udc_core driver shares one 'status_req' object for the >> > complete ep0 control transfer, it is not possible to prime the final >> > STATUS phase immediately after the IN transaction. E.g. ch9getstatus() >> > executed: >> > >> > | req = udc->status_req

[PATCH] usb: gadget: fsl_udc_core: do not immediatly prime STATUS for IN xfer

2012-09-04 Thread Enrico Scholz
oops e.g. when 'lsusb -v' is executed on the host. Patch delays the final 'ep0_prime_status(udc, EP_DIR_OUT))' by moving it into the ep0 completion handler. Signed-off-by: Enrico Scholz --- drivers/usb/gadget/fsl_udc_core.c | 16 +++- 1 file changed, 3 insertions(+), 1

[PATCH] usb: gadget: fsl_udc_core: remove mapped flag

2012-09-04 Thread Enrico Scholz
s same (or less) runtime costs like evaluating 'req->mapped'. Signed-off-by: Enrico Scholz --- drivers/usb/gadget/fsl_udc_core.c | 10 ++ drivers/usb/gadget/fsl_usb2_udc.h | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc_core.c