Skip to content

Preserve the flags portion on 1:1 dma-ranges mapping

Andrea della Porta linux-arm-kernel linux-clk linux-devicetree linux-gpio linux-pci lkml stable 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Added blank lines between paragraphs in commit message for patch 2
- Fixed a comment to explain the code behaviour in a straighter way

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2of/unittest: Add empty dma-ranges address translation testsdrivers/of/unittest-data/tests-address.dtsi drivers/of/unittest.c+41 -00 replies
2/2of: address: Preserve the flags portion on 1:1 dma-ranges mappingdrivers/of/address.c+2 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchHerve Codina
1/2
2/2T-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Preserve the flags portion on 1:1 dma-ranges mapping

Empty dma-ranges in DT nodes using 3-cell address spcifier cause the flag portion to be dropped by of_translate_one(), failing the translation chain. This patch aims at fixing this issue.

Part of this patchset was originally preparatory for a bigger patchset (see [1]). It has been split in a standalone one for better management and because it contains a bugfix which is probably of interest to stable branch.
I've also added new tests to unittest to prove it.

Many thanks,
Andrea

References:
[1] - https://lore.kernel.org/all/3029857353c9499659369c1540ba887d7860670f.1730123575.git.andrea.porta@suse.com/

Changes in V2:

- Added blank lines between paragraphs in commit message for patch 2
- Fixed a comment to explain the code behaviour in a straighter way

Andrea della Porta (2):
of/unittest: Add empty dma-ranges address translation tests
of: address: Preserve the flags portion on 1:1 dma-ranges mapping

 drivers/of/address.c                        |  3 +-
 drivers/of/unittest-data/tests-address.dtsi |  2 ++
 drivers/of/unittest.c                       | 39 +++++++++++++++++++++
 3 files changed, 43 insertions(+), 1 deletion(-)
Signature · 1 line
2.35.3