Re: [U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions

2020-01-16 Thread Vignesh Raghavendra
On 16/01/20 2:17 am, Tom Rini wrote: > On Fri, Nov 15, 2019 at 05:25:02PM +0530, Vignesh Raghavendra wrote: > >> Subsystems such as USB expect dma_map_single() and dma_unmap_single() to >> do dcache flush/invalidate operations as required. For example, see >> drivers/usb/gadget/udc/udc-core.c::

Re: [U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions

2020-01-15 Thread Tom Rini
On Fri, Nov 15, 2019 at 05:25:02PM +0530, Vignesh Raghavendra wrote: > Subsystems such as USB expect dma_map_single() and dma_unmap_single() to > do dcache flush/invalidate operations as required. For example, see > drivers/usb/gadget/udc/udc-core.c::usb_gadget_map_request(). > Currently drivers d

Re: [U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions

2019-11-18 Thread Rick Chen
> From: Vignesh Raghavendra [mailto:vigne...@ti.com] > Sent: Friday, November 15, 2019 7:55 PM > To: Rick Jian-Zhi Chen(陳建志); Simon Glass; Bin Meng; Peng Fan; Joe Hershberger > Cc: Vignesh Raghavendra; Ye Li; Anup Patel; Alexander Graf; Lukas Auer; > Masahiro Yamada; u-boot@lists.denx.de; Lokesh V

Re: [U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions

2019-11-15 Thread Masahiro Yamada
On Fri, Nov 15, 2019 at 8:55 PM Vignesh Raghavendra wrote: > > Subsystems such as USB expect dma_map_single() and dma_unmap_single() to > do dcache flush/invalidate operations as required. For example, see > drivers/usb/gadget/udc/udc-core.c::usb_gadget_map_request(). > Currently drivers do this l

[U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions

2019-11-15 Thread Vignesh Raghavendra
Subsystems such as USB expect dma_map_single() and dma_unmap_single() to do dcache flush/invalidate operations as required. For example, see drivers/usb/gadget/udc/udc-core.c::usb_gadget_map_request(). Currently drivers do this locally, (see drivers/usb/dwc3/ep0.c, drivers/mtd/nand/raw/denali.c etc