of: Support multiple dma-ranges entries
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | of/address: Move range parser code out of CONFIG_PCIdrivers/ | +109 | 0 replies | |
| 2/7 | microblaze: Drop using struct of_pci_range.pci_space fieldarch/ | +1 | 0 replies | |
| 3/7 | powerpc: Drop using struct of_pci_range.pci_space fieldarch/ | +1 | 0 replies | |
| 4/7 | of: Drop struct of_pci_range.pci_space fielddrivers/ include/ | +0 | 0 replies | |
| 5/7 | of/address: Rework of_pci_range parsing for non-PCI busesdrivers/ include/ | +30 | 0 replies | |
| 6/7 | of/address: use range parser for of_dma_get_rangedrivers/ | +13 | 0 replies | |
| 7/7 | of/address: Support multiple 'dma-ranges' entriesdrivers/ | +24 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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