Skip to content

RFC PIO drivers and cache coherency

Catalin Marinas linux-arch 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest5 patches 0 repliesNew
  2. v1 RFC4 patches 16 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pio-mapping: Add generic support for PIO mapping APIinclude/linux/pio-mapping.h+65 -00 replies
2/5pio-mapping: Add ARM support for the PIO mapping APIarch/arm/Kconfig arch/arm/include/asm/pio-mapping.h+69 -00 replies
3/5pio-mapping: Use the PIO mapping API in libata-sff.cdrivers/ata/libata-sff.c+6 -10 replies
4/5pio-mapping: Use the PIO mapping API in the ISP1760 HCD driverdrivers/usb/host/isp1760-hcd.c+7 -00 replies
5/5pio-mapping: Use the PIO mapping API in the MMCI PL18x driverdrivers/mmc/host/mmci.c drivers/mmc/host/mmci.h+17 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 0/5] PIO drivers and cache coherency

Hi,

These set of patches is the 2nd attempt at an API for PIO drivers. Following James' suggestion on a kmap-like API, the pio_* functions no longer look like the dma_map_* API.

There are situations where the page structure isn't available (the USB HCD drivers) and I introduced the pio_begin()/pio_end() functions that take care of the cache flushing.

I added another example for the mmci.c driver that is currently using flush_dcache_page().

Thanks.

Catalin Marinas (5):
pio-mapping: Add generic support for PIO mapping API
pio-mapping: Add ARM support for the PIO mapping API
pio-mapping: Use the PIO mapping API in libata-sff.c
pio-mapping: Use the PIO mapping API in the ISP1760 HCD driver
pio-mapping: Use the PIO mapping API in the MMCI PL18x driver

 arch/arm/Kconfig                   |    3 ++
 arch/arm/include/asm/pio-mapping.h |   66 ++++++++++++++++++++++++++++++++++++
 drivers/ata/libata-sff.c           |    7 +++-
 drivers/mmc/host/mmci.c            |   17 ++++-----
 drivers/mmc/host/mmci.h            |   13 +++++--
 drivers/usb/host/isp1760-hcd.c     |    7 ++++
 include/linux/pio-mapping.h        |   65 +++++++++++++++++++++++++++++++++++
 7 files changed, 164 insertions(+), 14 deletions(-)
 create mode 100644 arch/arm/include/asm/pio-mapping.h
 create mode 100644 include/linux/pio-mapping.h
Signature · 1 line
Catalin