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

2020-01-25 Thread Tom Rini
On Thu, Jan 16, 2020 at 02:23:45PM +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 > see drivers/usb/gadget/udc/udc-core.c::usb_gadget_map_request(). > Currently drive

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

2020-01-16 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 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