]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00154704 usb-gadget: wmb is needed after dtd pointer is updated for armv7
authorPeter Chen <peter.chen@freescale.com>
Thu, 11 Aug 2011 02:51:45 +0000 (10:51 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:06 +0000 (08:33 +0200)
commitbc31eb9ed6a9f64c27b3ede5af483002530c0d69
treeda5df6c0bcc0192468f0504bfc5067cc5230d485
parentef0518c1deecd24351288be6886cb93408e51d3f
ENGR00154704 usb-gadget: wmb is needed after dtd pointer is updated for armv7

At armv7 SoC, the dma_alloc_coherent returns non-cachable, but
bufferable region, so the driver needs to drain write buffer by
itself, if the controller needs to visit dma buffer immediately
after cpu writes

There is a discussion for this armv7 change:
http://marc.info/?t=127918539100004&r=1&w=2

For this issue, the next dtd pointer is invalid sometimes, the reason
is the region which is used to store dtd is dma buffer, so the data may
not be written to memory when the controller visit this data.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/gadget/arcotg_udc.c