diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2021-04-20 11:42:25 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-27 15:07:05 +0300 |
commit | bdfe6907e54d6ead19aa07ac4049223e28d4d0a5 (patch) | |
tree | 431a5ed1083b83f5eadb3598f2ee7dc50c138e78 /arch | |
parent | 77ed7a2ac975e4b72a1bd87e5c475c08c23bb06a (diff) | |
download | u-boot-bdfe6907e54d6ead19aa07ac4049223e28d4d0a5.tar.xz |
test: reset: Extend base reset test to catch error
With this extended test, we get the following failure :
=> ut dm reset_base
Test: dm_test_reset_base: reset.c
test/dm/reset.c:52, dm_test_reset_base(): reset_method3.id == reset_method3_1.id: Expected 0x14 (20), got 0x2 (2)
Test: dm_test_reset_base: reset.c (flat tree)
test/dm/reset.c:52, dm_test_reset_base(): reset_method3.id == reset_method3_1.id: Expected 0x14 (20), got 0x2 (2)
Failures: 2
A fix is needed in reset_get_by_index_nodev() when introduced in [1].
[1] ea9dc35aab ("reset: Get the RESET by index without device")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sandbox/dts/test.dts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 48240aa26f..4fde923e9a 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -997,8 +997,8 @@ reset-ctl-test { compatible = "sandbox,reset-ctl-test"; - resets = <&resetc 100>, <&resetc 2>; - reset-names = "other", "test"; + resets = <&resetc 100>, <&resetc 2>, <&resetc 20>, <&resetc 40>; + reset-names = "other", "test", "test2", "test3"; }; rng { |