Skip to content

of: Support multiple dma-ranges entries

Rob Herring linux-devicetree linuxppc-dev lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7of/address: Move range parser code out of CONFIG_PCIdrivers/of/address.c+109 -1060 replies
2/7microblaze: Drop using struct of_pci_range.pci_space fieldarch/microblaze/pci/pci-common.c+1 -60 replies
3/7powerpc: Drop using struct of_pci_range.pci_space fieldarch/powerpc/kernel/pci-common.c+1 -10 replies
4/7of: Drop struct of_pci_range.pci_space fielddrivers/of/address.c include/linux/of_address.h+0 -20 replies
5/7of/address: Rework of_pci_range parsing for non-PCI busesdrivers/of/address.c include/linux/of_address.h+30 -150 replies
6/7of/address: use range parser for of_dma_get_rangedrivers/of/address.c+13 -250 replies
7/7of/address: Support multiple 'dma-ranges' entriesdrivers/of/address.c+24 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] of: Support multiple dma-ranges entries

The DT DMA offset and mask/size setup for the DMA API only parses the first dma-ranges entry. This is not sufficient for some platforms. As we already support multiple ranges entries for the PCI specific parsing functions, let's refactor those to be general enough to handle both PCI and normal buses. Then we can have one instance of range parsing code by using it in of_dma_get_range().

Rob

Rob Herring (7):
of/address: Move range parser code out of CONFIG_PCI
microblaze: Drop using struct of_pci_range.pci_space field
powerpc: Drop using struct of_pci_range.pci_space field
of: Drop struct of_pci_range.pci_space field of/address: Rework of_pci_range parsing for non-PCI buses of/address: use range parser for of_dma_get_range of/address: Support multiple 'dma-ranges' entries

 arch/microblaze/pci/pci-common.c |   7 +-
 arch/powerpc/kernel/pci-common.c |   2 +-
 drivers/of/address.c             | 273 +++++++++++++++++--------------
 include/linux/of_address.h       |  13 +-
 4 files changed, 157 insertions(+), 138 deletions(-)

base-commit: bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9

Signature · 1 line
2.20.1