raj 7decbe72dc Fix USB cache sync operations for platforms with non-coherent DMA.
- usb_pc_cpu_invalidate() is called between [consecutive] reads from a device,
  so a sequence of BUS_DMASYNC_POSTREAD and _PREREAD should be used. Note we
  cannot use or'ed shorthand ( _POSTREAD | _PREREAD) for BUS_DMASYNC flags, as
  the low level bus dma sync operation is implementation dependent and we
  cannot assume the required order of operations to be guaranteed.

- usb_pc_cpu_flush() is called before writing to a device, so
  BUS_DMASYNC_PREWRITE should be used.

Submitted by:	Grzegorz Bernacki
Reviewed by:	HPS, arm@, usb@ ML
Tested by:	HPS, Mike Tancsa
Approved by:	re (kib)
Obtained from:	Semihalf
2009-08-19 14:39:08 +00:00
..
2009-07-03 21:12:37 +00:00
2009-05-13 22:31:25 +00:00
2009-06-26 10:23:17 +00:00
2009-07-20 03:59:00 +00:00
2009-03-25 06:27:56 +00:00
2009-06-24 20:43:51 +00:00
2009-06-21 19:17:22 +00:00
2009-06-03 20:25:13 +00:00
2009-06-05 18:44:36 +00:00
2009-04-14 11:23:09 +00:00
2009-05-30 18:39:22 +00:00
2009-06-14 00:15:26 +00:00
2009-05-25 22:50:11 +00:00
2009-06-16 14:55:13 +00:00