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

Vignesh Raghavendra vigneshr at ti.com
Thu Jan 16 09:56:22 CET 2020



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::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 <vigneshr at ti.com>
>> Reviewed-by: Masahiro Yamada <yamada.masahiro at socionext.com>
>> Reviewed-by: Rick Chen <rick at andestech.com>
>> ---
>>  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.
> 

This is caused by recently merged changes in U-Boot tree. I have posted
v2 with this issue fixed. Thanks!

-- 
Regards
Vignesh


More information about the U-Boot mailing list