linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Preserve the flags portion on 1:1 dma-ranges mapping
@ 2024-11-24 10:05 Andrea della Porta
  2024-11-24 10:05 ` [PATCH v2 1/2] of/unittest: Add empty dma-ranges address translation tests Andrea della Porta
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrea della Porta @ 2024-11-24 10:05 UTC (permalink / raw)
  To: Andrea della Porta, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Lorenzo Pieralisi,
	Krzysztof Wilczynski, Manivannan Sadhasivam, Bjorn Helgaas,
	Linus Walleij, Catalin Marinas, Will Deacon, Bartosz Golaszewski,
	Derek Kiernan, Dragan Cvetic, Arnd Bergmann, Greg Kroah-Hartman,
	Saravana Kannan, linux-clk, devicetree, linux-rpi-kernel,
	linux-arm-kernel, linux-kernel, linux-pci, linux-gpio,
	Masahiro Yamada, Stefan Wahren, Herve Codina, Luca Ceresoli,
	Thomas Petazzoni, Andrew Lunn

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(-)

-- 
2.35.3



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-27 13:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-24 10:05 [PATCH v2 0/2] Preserve the flags portion on 1:1 dma-ranges mapping Andrea della Porta
2024-11-24 10:05 ` [PATCH v2 1/2] of/unittest: Add empty dma-ranges address translation tests Andrea della Porta
2024-11-24 10:05 ` [PATCH v2 2/2] of: address: Preserve the flags portion on 1:1 dma-ranges mapping Andrea della Porta
2024-11-27 13:44 ` [PATCH v2 0/2] " Rob Herring

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).