1. 02 Mar, 2020 3 commits
  2. 28 Feb, 2020 3 commits
  3. 27 Feb, 2020 5 commits
  4. 26 Feb, 2020 15 commits
  5. 25 Feb, 2020 4 commits
  6. 20 Feb, 2020 3 commits
  7. 19 Feb, 2020 4 commits
  8. 14 Feb, 2020 3 commits
    • Rob Herring's avatar
      of/address: Support multiple 'dma-ranges' entries · 9d55bebd
      Rob Herring authored
      Currently, the DMA offset and mask for a device are set based only on the
      first 'dma-ranges' entry. We should really be using all the entries. The
      kernel doesn't yet support multiple offsets and sizes, so the best we can
      do is to find the biggest size for a single offset. The algorithm is
      copied from acpi_dma_get_range().
      
      If there's different offsets from the first entry, then we warn and
      continue. It really should be an error, but this will likely break
      existing DTs.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      9d55bebd
    • Rob Herring's avatar
      of/address: use range parser for of_dma_get_range · 7a8b64d1
      Rob Herring authored
      of_dma_get_range() does the same ranges parsing as
      of_pci_range_parser_one(), so let's refactor of_dma_get_range() to use
      it instead.
      
      This commit is no functional change. Subsequent commits will parse more
      than the 1st dma-ranges entry.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      7a8b64d1
    • Rob Herring's avatar
      of/address: Rework of_pci_range parsing for non-PCI buses · bc5e522e
      Rob Herring authored
      The only PCI specific part of of_pci_range_parser_one() is the handling
      of the 3rd address cell. Rework it to work on regular 1 and 2 cell
      addresses.
      
      Use defines and a union to avoid a treewide renaming of the parsing
      helpers and struct.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      bc5e522e