]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
of: unittest: Add tests for address translations
authorHerve Codina <herve.codina@bootlin.com>
Tue, 17 Oct 2023 11:02:18 +0000 (13:02 +0200)
committerRob Herring <robh@kernel.org>
Fri, 27 Oct 2023 21:37:42 +0000 (16:37 -0500)
commit4d9ec5f04bad67abdbbd036801edba37e642f87d
tree92688ece8d0b03ce99472ca8e61ee6b96ec8ebdd
parent3eb030c60835668997d5763b1a0c7938faf169f6
of: unittest: Add tests for address translations

Add tests to exercise address translations based on ranges properties.

Tests added cover "default" (2cell) address translations, "default
flags" (3cell) address translations and PCI address translations.
They also cover PCI BAR translations introduced in commit 407d1a51921e
("PCI: Create device tree node for bridge").

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20231017110221.189299-4-herve.codina@bootlin.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest-data/tests-address.dtsi
drivers/of/unittest.c