From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 15 Jan 2020 15:47:58 -0500 Subject: [U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions In-Reply-To: <20191115115505.893-2-vigneshr@ti.com> References: <20191115115505.893-1-vigneshr@ti.com> <20191115115505.893-2-vigneshr@ti.com> Message-ID: <20200115204758.GS8732@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 do this locally, (see drivers/usb/dwc3/ep0.c, > drivers/mtd/nand/raw/denali.c etc..) > Update arch specific dma_map_single() and dma_unmap_single() APIs to do > cache flush/invalidate operations, so that drivers need not implement > them locally. > > Signed-off-by: Vignesh Raghavendra > Reviewed-by: Masahiro Yamada > Reviewed-by: Rick Chen > --- > arch/arm/include/asm/dma-mapping.h | 22 ++++++++++++++++++++-- > arch/nds32/include/asm/dma-mapping.h | 22 ++++++++++++++++++++-- > arch/riscv/include/asm/dma-mapping.h | 22 ++++++++++++++++++++-- > arch/x86/include/asm/dma-mapping.h | 22 ++++++++++++++++++++-- > 4 files changed, 80 insertions(+), 8 deletions(-) This throws warnings on am335x_evm, please re-check and resubmit, thanks. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: