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>
This commit is contained in:
committed by
Stefan Roese
parent
b104caa9a4
commit
49f352dc33
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user