From: Rob Herring <robh@kernel.org>
To: devicetree@vger.kernel.org, Frank Rowand <frowand.list@gmail.com>
Cc: Michal Simek <monstr@monstr.eu>, Arnd Bergmann <arnd@arndb.de>,
Linus Walleij <linus.walleij@linaro.org>,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
Paul Mackerras <paulus@samba.org>,
Robin Murphy <robin.murphy@arm.com>,
Christoph Hellwig <hch@lst.de>
Subject: [PATCH 0/7] of: Support multiple dma-ranges entries
Date: Fri, 14 Feb 2020 16:43:15 -0600 [thread overview]
Message-ID: <20200214224322.20030-1-robh@kernel.org> (raw)
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
--
2.20.1
next reply other threads:[~2020-02-14 22:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-14 22:43 Rob Herring [this message]
2020-02-14 22:43 ` [PATCH 1/7] of/address: Move range parser code out of CONFIG_PCI Rob Herring
2020-02-14 22:43 ` [PATCH 2/7] microblaze: Drop using struct of_pci_range.pci_space field Rob Herring
2020-02-14 22:43 ` [PATCH 3/7] powerpc: " Rob Herring
2020-02-14 22:43 ` [PATCH 4/7] of: Drop " Rob Herring
2020-02-14 22:43 ` [PATCH 5/7] of/address: Rework of_pci_range parsing for non-PCI buses Rob Herring
2020-02-14 22:43 ` [PATCH 6/7] of/address: use range parser for of_dma_get_range Rob Herring
2020-02-14 22:43 ` [PATCH 7/7] of/address: Support multiple 'dma-ranges' entries Rob Herring
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=20200214224322.20030-1-robh@kernel.org \
--to=robh@kernel.org \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=hch@lst.de \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=monstr@monstr.eu \
--cc=paulus@samba.org \
--cc=robin.murphy@arm.com \
/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;
as well as URLs for NNTP newsgroup(s).