From: Vignesh Raghavendra <vigneshr@ti.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 0/4] dma-mapping: Add cache flush/invalidation to dma_{un}map_single
Date: Thu, 16 Jan 2020 14:23:44 +0530 [thread overview]
Message-ID: <20200116085348.24031-1-vigneshr@ti.com> (raw)
Drivers (especially frameworks ported from Linux such as USB) expect
dma_{un}map_single() APIs to take care of cache maintenance. But this is
not the case in U-Boot and few drivers take care of flushing caches
locally. Instead add flush/invalidate calls to DMA APIs in arch specific
dma-mapping.h file so that per driver implementation of these APIs can
be avoided.
travis-ci is green: https://travis-ci.org/r-vignesh/u-boot/builds/637784160
v2:
Fix compilation failure on AM335x etc due to recent U-Boot changes
Collect R-bys
Vignesh Raghavendra (4):
asm: dma-mapping.h: Fix dma mapping functions
mmc: tmio-common: Drop custom dma mapping functions
mtd: denali: Drop custom dma mapping functions
net: macb: Drop local cache flush
arch/arm/include/asm/dma-mapping.h | 23 ++++++++++++++++--
arch/nds32/include/asm/dma-mapping.h | 23 ++++++++++++++++--
arch/riscv/include/asm/dma-mapping.h | 23 ++++++++++++++++--
arch/x86/include/asm/dma-mapping.h | 23 ++++++++++++++++--
drivers/mmc/tmio-common.c | 25 +++-----------------
drivers/mtd/nand/raw/denali.c | 35 +++-------------------------
drivers/net/macb.c | 4 +---
7 files changed, 91 insertions(+), 65 deletions(-)
--
2.25.0
next reply other threads:[~2020-01-16 8:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-16 8:53 Vignesh Raghavendra [this message]
2020-01-16 8:53 ` [PATCH v2 1/4] asm: dma-mapping.h: Fix dma mapping functions Vignesh Raghavendra
2020-01-25 17:09 ` Tom Rini
2020-01-16 8:53 ` [PATCH v2 2/4] mmc: tmio-common: Drop custom " Vignesh Raghavendra
2020-01-25 17:09 ` Tom Rini
2020-01-16 8:53 ` [PATCH v2 3/4] mtd: denali: " Vignesh Raghavendra
2020-01-25 17:09 ` Tom Rini
2020-01-16 8:53 ` [PATCH v2 4/4] net: macb: Drop local cache flush Vignesh Raghavendra
2020-01-25 17:09 ` Tom Rini
2020-01-24 5:22 ` [PATCH v2 0/4] dma-mapping: Add cache flush/invalidation to dma_{un}map_single Vignesh Raghavendra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200116085348.24031-1-vigneshr@ti.com \
--to=vigneshr@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox