All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v6 01/14] test: regmap: Increase size of syscon0 memory
@ 2018-08-13  6:08 Mario Six
  2018-08-13  6:08 ` [U-Boot] [PATCH v6 02/14] regmap: Fix documentation Mario Six
                   ` (12 more replies)
  0 siblings, 13 replies; 22+ messages in thread
From: Mario Six @ 2018-08-13  6:08 UTC (permalink / raw)
  To: u-boot

The upcoming changes to the regmap interface will contain a proper check
for plausibility when reading/writing from/to a register map. To still
have the current tests pass, increase the size of the memory region for
the syscon0 device, since one of the tests reads and writes beyond this
range.

Reviewed-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mario Six <mario.six@gdsys.cc>

---

v5 -> v6:
* Fix the test that checks the changed size

v4 -> v5:
No changes

v3 -> v4:
No changes

v2 -> v3:
New in v3

---
 arch/sandbox/dts/test.dts | 2 +-
 test/dm/regmap.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 70356461959..9269b9b30ec 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -439,7 +439,7 @@

 	syscon at 0 {
 		compatible = "sandbox,syscon0";
-		reg = <0x10 4>;
+		reg = <0x10 16>;
 	};

 	syscon at 1 {
diff --git a/test/dm/regmap.c b/test/dm/regmap.c
index d4b86b3b03c..b28d6a6cd11 100644
--- a/test/dm/regmap.c
+++ b/test/dm/regmap.c
@@ -25,7 +25,7 @@ static int dm_test_regmap_base(struct unit_test_state *uts)
 	ut_assertok_ptr(map);
 	ut_asserteq(1, map->range_count);
 	ut_asserteq(0x10, map->ranges[0].start);
-	ut_asserteq(4, map->ranges[0].size);
+	ut_asserteq(16, map->ranges[0].size);
 	ut_asserteq(0x10, map_to_sysmem(regmap_get_range(map, 0)));

 	ut_assertok(uclass_get_device(UCLASS_SYSCON, 1, &dev));
--
2.11.0

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

end of thread, other threads:[~2018-09-27  8:13 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13  6:08 [U-Boot] [PATCH v6 01/14] test: regmap: Increase size of syscon0 memory Mario Six
2018-08-13  6:08 ` [U-Boot] [PATCH v6 02/14] regmap: Fix documentation Mario Six
2018-08-13  6:08 ` [U-Boot] [PATCH v6 03/14] regmap: Add documentation Mario Six
2018-08-13  6:08 ` [U-Boot] [PATCH v6 04/14] regmap: Improve error handling Mario Six
2018-08-13  6:08 ` [U-Boot] [PATCH v6 05/14] regmap: Introduce init_range Mario Six
2018-08-13  6:08 ` [U-Boot] [PATCH v6 06/14] regmap: Add error output Mario Six
2018-08-13  6:08 ` [U-Boot] [PATCH v6 07/14] mips: Implement {in, out}_{le, be}_{16, 32, 64} and {in, out}_8 Mario Six
2018-08-13  6:09 ` [U-Boot] [PATCH v6 08/14] regmap: Add raw read/write functions Mario Six
2018-08-17 12:48   ` Simon Glass
2018-09-21  7:02     ` Mario Six
2018-09-21 19:55       ` Simon Glass
2018-09-25  5:48         ` Bin Meng
2018-09-25  6:23           ` Mario Six
2018-09-25  6:56             ` Bin Meng
2018-09-27  8:13               ` Mario Six
2018-09-25  6:13         ` Mario Six
2018-08-13  6:09 ` [U-Boot] [PATCH v6 09/14] regmap: Support reading from specific range Mario Six
2018-08-13  6:09 ` [U-Boot] [PATCH v6 10/14] regmap: Define regmap_{get,set} Mario Six
2018-08-13  6:09 ` [U-Boot] [PATCH v6 11/14] test: regmap: Add test for regmap_{set, get} Mario Six
2018-08-13  6:09 ` [U-Boot] [PATCH v6 12/14] misc: Sort Makefile entries Mario Six
2018-08-13  6:09 ` [U-Boot] [PATCH v6 13/14] misc: Add gdsys_soc driver Mario Six
2018-08-13  6:09 ` [U-Boot] [PATCH v6 14/14] misc: Add IHS FPGA driver Mario Six

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.