Skip to content

devres: Add functions + migrate Xillybus driver

Eli Billauer lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5devres: Add devm_get_free_pages APIDocumentation/driver-model/devres.txt drivers/base/devres.c include/linux/device.h+82 -01 reply
2/5dma-mapping: Add devm_ interface for dma_map_single()Documentation/driver-model/devres.txt drivers/base/dma-mapping.c include/linux/dma-mapping.h+86 -15 replies
3/5dma-mapping: pci: Add devm_ interface for pci_map_singleDocumentation/driver-model/devres.txt include/asm-generic/pci-dma-compat.h+19 -01 reply
4/5staging: xillybus: Use devm_ API on probe and removedrivers/staging/xillybus/xillybus.h drivers/staging/xillybus/xillybus_core.c drivers/staging/xillybus/xillybus_of.c +1 more+27 -880 replies
5/5staging: xillybus: Use devm_ API for memory allocation and DMA mappingdrivers/staging/xillybus/xillybus.h drivers/staging/xillybus/xillybus_core.c drivers/staging/xillybus/xillybus_of.c +1 more+48 -2430 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchTejun Heo
1/5A-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] devres: Add functions + migrate Xillybus driver

This patchset consists of new functions to the managed device resource API, followed by patches for the Xillybus driver that now relies on these.

Rationale: While migrating the staging/xillybus driver to rely completely on managed resources, some functionalities were missing, and hence added:

* devm_get_free_pages()
* devm_free_pages()
* dmam_map_single()
* dmam_unmap_single()
* pcim_map_single()
* pcim_unmap_single()

After applying these patches, the Xillybus driver uses all six functions, and has been hardware tested on arm and x86_32. A compilation check went cleanly on x86_64 as well.

Dependencies:
Patch #3 relies on patch #2 (quite obviously).
Patch #5 relies on all previous patches.

Thanks,
Eli

Eli Billauer (5):
devres: Add devm_get_free_pages API
dma-mapping: Add devm_ interface for dma_map_single()
dma-mapping: pci: Add devm_ interface for pci_map_single
staging: xillybus: Use devm_ API on probe and remove
staging: xillybus: Use devm_ API for memory allocation and DMA
mapping

 Documentation/driver-model/devres.txt    |    6 +
 drivers/base/devres.c                    |   76 ++++++++++++++
 drivers/base/dma-mapping.c               |   80 +++++++++++++++
 drivers/staging/xillybus/xillybus.h      |   32 +------
 drivers/staging/xillybus/xillybus_core.c |  162 ++++++++----------------------
 drivers/staging/xillybus/xillybus_of.c   |   99 ++----------------
 drivers/staging/xillybus/xillybus_pcie.c |  111 ++++-----------------
 include/asm-generic/pci-dma-compat.h     |   17 +++
 include/linux/device.h                   |    4 +
 include/linux/dma-mapping.h              |    5 +-
 10 files changed, 261 insertions(+), 331 deletions(-)
Signature · 1 line
1.7.2.3