Lines Matching +full:motor +full:- +full:driver
1 // SPDX-License-Identifier: GPL-2.0
6 #define pr_fmt(fmt) "### dt-test ### " fmt
10 #include <linux/dma-direct.h> /* to test phys_to_dma/dma_to_phys */
28 #include <linux/i2c-mux.h>
29 #include <linux/gpio/driver.h>
71 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
73 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
74 "find /testcase-data failed\n"); in of_unittest_find_node_by_name()
79 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name()
80 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name()
82 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
84 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
85 "find /testcase-data/phandle-tests/consumer-a failed\n"); in of_unittest_find_node_by_name()
89 np = of_find_node_by_path("testcase-alias"); in of_unittest_find_node_by_name()
91 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
92 "find testcase-alias failed\n"); in of_unittest_find_node_by_name()
97 np = of_find_node_by_path("testcase-alias/"); in of_unittest_find_node_by_name()
98 unittest(!np, "trailing '/' on testcase-alias/ should fail\n"); in of_unittest_find_node_by_name()
100 np = of_find_node_by_path("testcase-alias/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
102 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
103 "find testcase-alias/phandle-tests/consumer-a failed\n"); in of_unittest_find_node_by_name()
107 np = of_find_node_by_path("/testcase-data/missing-path"); in of_unittest_find_node_by_name()
108 unittest(!np, "non-existent path returned node %pOF\n", np); in of_unittest_find_node_by_name()
111 np = of_find_node_by_path("missing-alias"); in of_unittest_find_node_by_name()
112 unittest(!np, "non-existent alias returned node %pOF\n", np); in of_unittest_find_node_by_name()
115 np = of_find_node_by_path("testcase-alias/missing-path"); in of_unittest_find_node_by_name()
116 unittest(!np, "non-existent alias with relative path returned node %pOF\n", np); in of_unittest_find_node_by_name()
119 np = of_find_node_opts_by_path("/testcase-data:testoption", &options); in of_unittest_find_node_by_name()
124 np = of_find_node_opts_by_path("/testcase-data:test/option", &options); in of_unittest_find_node_by_name()
129 np = of_find_node_opts_by_path("/testcase-data/testcase-device1:test/option", &options); in of_unittest_find_node_by_name()
134 np = of_find_node_opts_by_path("/testcase-data:testoption", NULL); in of_unittest_find_node_by_name()
138 np = of_find_node_opts_by_path("testcase-alias:testaliasoption", in of_unittest_find_node_by_name()
144 np = of_find_node_opts_by_path("testcase-alias:test/alias/option", in of_unittest_find_node_by_name()
150 np = of_find_node_opts_by_path("testcase-alias:testaliasoption", NULL); in of_unittest_find_node_by_name()
155 np = of_find_node_opts_by_path("testcase-alias", &options); in of_unittest_find_node_by_name()
170 np = of_find_node_by_path("/testcase-data"); in of_unittest_dynamic()
183 /* Add a new property - should pass*/ in of_unittest_dynamic()
184 prop->name = "new-property"; in of_unittest_dynamic()
185 prop->value = "new-property-data"; in of_unittest_dynamic()
186 prop->length = strlen(prop->value) + 1; in of_unittest_dynamic()
189 /* Try to add an existing property - should fail */ in of_unittest_dynamic()
191 prop->name = "new-property"; in of_unittest_dynamic()
192 prop->value = "new-property-data-should-fail"; in of_unittest_dynamic()
193 prop->length = strlen(prop->value) + 1; in of_unittest_dynamic()
197 /* Try to modify an existing property - should pass */ in of_unittest_dynamic()
198 prop->value = "modify-property-data-should-pass"; in of_unittest_dynamic()
199 prop->length = strlen(prop->value) + 1; in of_unittest_dynamic()
203 /* Try to modify non-existent property - should pass*/ in of_unittest_dynamic()
205 prop->name = "modify-property"; in of_unittest_dynamic()
206 prop->value = "modify-missing-property-data-should-pass"; in of_unittest_dynamic()
207 prop->length = strlen(prop->value) + 1; in of_unittest_dynamic()
211 /* Remove property - should pass */ in of_unittest_dynamic()
215 /* Adding very large property - should pass */ in of_unittest_dynamic()
217 prop->name = "large-property-PAGE_SIZEx8"; in of_unittest_dynamic()
218 prop->length = PAGE_SIZE * 8; in of_unittest_dynamic()
219 prop->value = kzalloc(prop->length, GFP_KERNEL); in of_unittest_dynamic()
220 unittest(prop->value != NULL, "Unable to allocate large buffer\n"); in of_unittest_dynamic()
221 if (prop->value) in of_unittest_dynamic()
232 if (child->parent != np) { in of_unittest_check_node_linkage()
235 rc = -EINVAL; in of_unittest_check_node_linkage()
284 size = snprintf(buf, buf_size - 2, fmt, np); in of_unittest_printf_one()
293 for (i = 0; i < 2; i++, size--) { in of_unittest_printf_one()
307 const char *full_name = "/testcase-data/platform-tests/test-device@1/dev@100"; in of_unittest_printf()
316 num_to_str(phandle_str, sizeof(phandle_str), np->phandle, 0); in of_unittest_printf()
323 of_unittest_printf_one(np, "%pOFnc", "dev:test-sub-device"); in of_unittest_printf()
328 of_unittest_printf_one(np, "%-10pOFP", "dev@100 "); in of_unittest_printf()
330 of_unittest_printf_one(np, "%pOFF", "----"); in of_unittest_printf()
331 of_unittest_printf_one(np, "%pOFPF", "dev@100:----"); in of_unittest_printf()
332 of_unittest_printf_one(np, "%pOFPFPc", "dev@100:----:dev@100:test-sub-device"); in of_unittest_printf()
333 of_unittest_printf_one(np, "%pOFc", "test-sub-device"); in of_unittest_printf()
335 "\"test-sub-device\",\"test-compat2\",\"test-compat3\""); in of_unittest_printf()
352 if (!np->phandle) in of_unittest_check_phandles()
355 hash_for_each_possible(phandle_ht, nh, node, np->phandle) { in of_unittest_check_phandles()
356 if (nh->np->phandle == np->phandle) { in of_unittest_check_phandles()
358 np->phandle, nh->np, np); in of_unittest_check_phandles()
368 nh->np = np; in of_unittest_check_phandles()
369 hash_add(phandle_ht, &nh->node, np->phandle); in of_unittest_check_phandles()
377 hash_del(&nh->node); in of_unittest_check_phandles()
388 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_parse_phandle_with_args()
394 rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells"); in of_unittest_parse_phandle_with_args()
401 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
402 "#phandle-cells", i, &args); in of_unittest_parse_phandle_with_args()
404 /* Test the values from tests-phandle.dtsi */ in of_unittest_parse_phandle_with_args()
418 passed &= (rc == -ENOENT); in of_unittest_parse_phandle_with_args()
443 passed &= (rc == -ENOENT); in of_unittest_parse_phandle_with_args()
449 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_phandle_with_args()
455 rc = of_parse_phandle_with_args(np, "phandle-list-missing", in of_unittest_parse_phandle_with_args()
456 "#phandle-cells", 0, &args); in of_unittest_parse_phandle_with_args()
457 unittest(rc == -ENOENT, "expected:%i got:%i\n", -ENOENT, rc); in of_unittest_parse_phandle_with_args()
458 rc = of_count_phandle_with_args(np, "phandle-list-missing", in of_unittest_parse_phandle_with_args()
459 "#phandle-cells"); in of_unittest_parse_phandle_with_args()
460 unittest(rc == -ENOENT, "expected:%i got:%i\n", -ENOENT, rc); in of_unittest_parse_phandle_with_args()
466 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
468 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
469 "#phandle-cells-missing", 0, &args); in of_unittest_parse_phandle_with_args()
472 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
474 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
477 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
479 rc = of_count_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
480 "#phandle-cells-missing"); in of_unittest_parse_phandle_with_args()
483 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
485 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
491 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); in of_unittest_parse_phandle_with_args()
493 rc = of_parse_phandle_with_args(np, "phandle-list-bad-phandle", in of_unittest_parse_phandle_with_args()
494 "#phandle-cells", 0, &args); in of_unittest_parse_phandle_with_args()
497 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); in of_unittest_parse_phandle_with_args()
499 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
502 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); in of_unittest_parse_phandle_with_args()
504 rc = of_count_phandle_with_args(np, "phandle-list-bad-phandle", in of_unittest_parse_phandle_with_args()
505 "#phandle-cells"); in of_unittest_parse_phandle_with_args()
508 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); in of_unittest_parse_phandle_with_args()
510 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
516 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found 1"); in of_unittest_parse_phandle_with_args()
518 rc = of_parse_phandle_with_args(np, "phandle-list-bad-args", in of_unittest_parse_phandle_with_args()
519 "#phandle-cells", 1, &args); in of_unittest_parse_phandle_with_args()
522 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found 1"); in of_unittest_parse_phandle_with_args()
524 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
527 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found 1"); in of_unittest_parse_phandle_with_args()
529 rc = of_count_phandle_with_args(np, "phandle-list-bad-args", in of_unittest_parse_phandle_with_args()
530 "#phandle-cells"); in of_unittest_parse_phandle_with_args()
533 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found 1"); in of_unittest_parse_phandle_with_args()
535 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
544 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-b"); in of_unittest_parse_phandle_with_args_map()
550 p0 = of_find_node_by_path("/testcase-data/phandle-tests/provider0"); in of_unittest_parse_phandle_with_args_map()
556 p1 = of_find_node_by_path("/testcase-data/phandle-tests/provider1"); in of_unittest_parse_phandle_with_args_map()
562 p2 = of_find_node_by_path("/testcase-data/phandle-tests/provider2"); in of_unittest_parse_phandle_with_args_map()
568 p3 = of_find_node_by_path("/testcase-data/phandle-tests/provider3"); in of_unittest_parse_phandle_with_args_map()
574 rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells"); in of_unittest_parse_phandle_with_args_map()
581 rc = of_parse_phandle_with_args_map(np, "phandle-list", in of_unittest_parse_phandle_with_args_map()
584 /* Test the values from tests-phandle.dtsi */ in of_unittest_parse_phandle_with_args_map()
601 passed &= (rc == -ENOENT); in of_unittest_parse_phandle_with_args_map()
627 passed &= (rc == -ENOENT); in of_unittest_parse_phandle_with_args_map()
633 unittest(passed, "index %i - data error on node %s rc=%i\n", in of_unittest_parse_phandle_with_args_map()
634 i, args.np->full_name, rc); in of_unittest_parse_phandle_with_args_map()
639 rc = of_parse_phandle_with_args_map(np, "phandle-list-missing", in of_unittest_parse_phandle_with_args_map()
641 unittest(rc == -ENOENT, "expected:%i got:%i\n", -ENOENT, rc); in of_unittest_parse_phandle_with_args_map()
647 …"OF: /testcase-data/phandle-tests/consumer-b: could not get #phandle-missing-cells for /testcase-d… in of_unittest_parse_phandle_with_args_map()
649 rc = of_parse_phandle_with_args_map(np, "phandle-list", in of_unittest_parse_phandle_with_args_map()
650 "phandle-missing", 0, &args); in of_unittest_parse_phandle_with_args_map()
652 …"OF: /testcase-data/phandle-tests/consumer-b: could not get #phandle-missing-cells for /testcase-d… in of_unittest_parse_phandle_with_args_map()
654 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args_map()
660 "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"); in of_unittest_parse_phandle_with_args_map()
662 rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-phandle", in of_unittest_parse_phandle_with_args_map()
665 "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"); in of_unittest_parse_phandle_with_args_map()
667 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args_map()
673 "OF: /testcase-data/phandle-tests/consumer-b: #phandle-cells = 2 found 1"); in of_unittest_parse_phandle_with_args_map()
675 rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-args", in of_unittest_parse_phandle_with_args_map()
678 "OF: /testcase-data/phandle-tests/consumer-b: #phandle-cells = 2 found 1"); in of_unittest_parse_phandle_with_args_map()
680 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args_map()
689 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_property_string()
695 rc = of_property_match_string(np, "phandle-list-names", "first"); in of_unittest_property_string()
697 rc = of_property_match_string(np, "phandle-list-names", "second"); in of_unittest_property_string()
699 rc = of_property_match_string(np, "phandle-list-names", "third"); in of_unittest_property_string()
701 rc = of_property_match_string(np, "phandle-list-names", "fourth"); in of_unittest_property_string()
702 unittest(rc == -ENODATA, "unmatched string; rc=%i\n", rc); in of_unittest_property_string()
703 rc = of_property_match_string(np, "missing-property", "blah"); in of_unittest_property_string()
704 unittest(rc == -EINVAL, "missing property; rc=%i\n", rc); in of_unittest_property_string()
705 rc = of_property_match_string(np, "empty-property", "blah"); in of_unittest_property_string()
706 unittest(rc == -ENODATA, "empty property; rc=%i\n", rc); in of_unittest_property_string()
707 rc = of_property_match_string(np, "unterminated-string", "blah"); in of_unittest_property_string()
708 unittest(rc == -EILSEQ, "unterminated string; rc=%i\n", rc); in of_unittest_property_string()
711 rc = of_property_count_strings(np, "string-property"); in of_unittest_property_string()
713 rc = of_property_count_strings(np, "phandle-list-names"); in of_unittest_property_string()
715 rc = of_property_count_strings(np, "unterminated-string"); in of_unittest_property_string()
716 unittest(rc == -EILSEQ, "unterminated string; rc=%i\n", rc); in of_unittest_property_string()
717 rc = of_property_count_strings(np, "unterminated-string-list"); in of_unittest_property_string()
718 unittest(rc == -EILSEQ, "unterminated string array; rc=%i\n", rc); in of_unittest_property_string()
721 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
724 rc = of_property_read_string_index(np, "string-property", 1, strings); in of_unittest_property_string()
725 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
726 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
728 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
730 rc = of_property_read_string_index(np, "phandle-list-names", 2, strings); in of_unittest_property_string()
733 rc = of_property_read_string_index(np, "phandle-list-names", 3, strings); in of_unittest_property_string()
734 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
736 rc = of_property_read_string_index(np, "unterminated-string", 0, strings); in of_unittest_property_string()
737 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
738 rc = of_property_read_string_index(np, "unterminated-string-list", 0, strings); in of_unittest_property_string()
741 rc = of_property_read_string_index(np, "unterminated-string-list", 2, strings); /* should fail */ in of_unittest_property_string()
742 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
746 rc = of_property_read_string_array(np, "string-property", strings, 4); in of_unittest_property_string()
748 rc = of_property_read_string_array(np, "phandle-list-names", strings, 4); in of_unittest_property_string()
750 rc = of_property_read_string_array(np, "unterminated-string", strings, 4); in of_unittest_property_string()
751 unittest(rc == -EILSEQ, "unterminated string; rc=%i\n", rc); in of_unittest_property_string()
752 /* -- An incorrectly formed string should cause a failure */ in of_unittest_property_string()
753 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 4); in of_unittest_property_string()
754 unittest(rc == -EILSEQ, "unterminated string array; rc=%i\n", rc); in of_unittest_property_string()
755 /* -- parsing the correctly formed strings should still work: */ in of_unittest_property_string()
757 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 2); in of_unittest_property_string()
760 rc = of_property_read_string_array(np, "phandle-list-names", strings, 1); in of_unittest_property_string()
764 #define propcmp(p1, p2) (((p1)->length == (p2)->length) && \
765 (p1)->value && (p2)->value && \
766 !memcmp((p1)->value, (p2)->value, (p1)->length) && \
767 !strcmp((p1)->name, (p2)->name))
777 kfree(new->value); in of_unittest_property_copy()
778 kfree(new->name); in of_unittest_property_copy()
782 unittest(new && propcmp(&p2, new), "non-empty property didn't copy correctly\n"); in of_unittest_property_copy()
783 kfree(new->value); in of_unittest_property_copy()
784 kfree(new->name); in of_unittest_property_copy()
792 struct property *ppadd, padd = { .name = "prop-add", .length = 1, .value = "" }; in of_unittest_changeset()
796 struct property *ppupdate, pupdate = { .name = "prop-update", .length = 5, .value = "abcd" }; in of_unittest_changeset()
810 nchangeset = of_find_node_by_path("/testcase-data/changeset"); in of_unittest_changeset()
811 nremove = of_get_child_by_name(nchangeset, "node-remove"); in of_unittest_changeset()
830 n1->parent = parent; in of_unittest_changeset()
831 n2->parent = parent; in of_unittest_changeset()
832 n21->parent = n2; in of_unittest_changeset()
834 ppremove = of_find_property(parent, "prop-remove", NULL); in of_unittest_changeset()
850 unittest(!of_changeset_add_property(&chgset, parent, ppadd), "fail add prop prop-add\n"); in of_unittest_changeset()
859 unittest((np = of_find_node_by_path("/testcase-data/changeset/n2/n21")), in of_unittest_changeset()
881 np = of_find_node_by_path("/testcase-data/address-tests"); in of_unittest_dma_get_max_cpu_address()
923 dev_bogus->dma_range_map = map; in of_unittest_dma_ranges_one()
943 of_unittest_dma_ranges_one("/testcase-data/address-tests/device@70000000", in of_unittest_parse_dma_ranges()
946 of_unittest_dma_ranges_one("/testcase-data/address-tests/bus@80000000/device@1000", in of_unittest_parse_dma_ranges()
948 of_unittest_dma_ranges_one("/testcase-data/address-tests/pci@90000000", in of_unittest_parse_dma_ranges()
962 np = of_find_node_by_path("/testcase-data/address-tests/pci@90000000"); in of_unittest_pci_dma_ranges()
969 pr_err("missing dma-ranges property\n"); in of_unittest_pci_dma_ranges()
974 * Get the dma-ranges from the device tree in of_unittest_pci_dma_ranges()
1013 np = of_find_node_by_path("/testcase-data/interrupts/interrupts0"); in of_unittest_parse_interrupts()
1029 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_interrupts()
1034 np = of_find_node_by_path("/testcase-data/interrupts/interrupts1"); in of_unittest_parse_interrupts()
1046 /* Test the values from tests-phandle.dtsi */ in of_unittest_parse_interrupts()
1075 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_interrupts()
1090 np = of_find_node_by_path("/testcase-data/interrupts/interrupts-extended0"); in of_unittest_parse_interrupts_extended()
1102 /* Test the values from tests-phandle.dtsi */ in of_unittest_parse_interrupts_extended()
1143 * #address-cells. See the comments in in of_unittest_parse_interrupts_extended()
1144 * drivers/of/unittest-data/tests-interrupts.dtsi in of_unittest_parse_interrupts_extended()
1145 * nodes intmap1 and interrupts-extended0 in of_unittest_parse_interrupts_extended()
1155 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_interrupts_extended()
1182 { .path = "/testcase-data/match-node/name0", .data = "A", },
1183 { .path = "/testcase-data/match-node/name1", .data = "B", },
1184 { .path = "/testcase-data/match-node/a/name2", .data = "Ca", },
1185 { .path = "/testcase-data/match-node/b/name2", .data = "Cb", },
1186 { .path = "/testcase-data/match-node/c/name2", .data = "Cc", },
1187 { .path = "/testcase-data/match-node/name3", .data = "E", },
1188 { .path = "/testcase-data/match-node/name4", .data = "G", },
1189 { .path = "/testcase-data/match-node/name5", .data = "H", },
1190 { .path = "/testcase-data/match-node/name6", .data = "G", },
1191 { .path = "/testcase-data/match-node/name7", .data = "I", },
1192 { .path = "/testcase-data/match-node/name8", .data = "J", },
1193 { .path = "/testcase-data/match-node/name9", .data = "K", },
1217 if (strcmp(match->data, match_node_tests[i].data) != 0) { in of_unittest_match_node()
1220 (const char *)match->data); in of_unittest_match_node()
1229 .name = "unittest-bus",
1237 { .compatible = "test-device", }, in of_unittest_platform_populate()
1241 np = of_find_node_by_path("/testcase-data"); in of_unittest_platform_populate()
1244 /* Test that a missing irq domain returns -EPROBE_DEFER */ in of_unittest_platform_populate()
1245 np = of_find_node_by_path("/testcase-data/testcase-device1"); in of_unittest_platform_populate()
1251 unittest(irq == -EPROBE_DEFER, in of_unittest_platform_populate()
1252 "device deferred probe failed - %d\n", irq); in of_unittest_platform_populate()
1254 /* Test that a parsing failure does not return -EPROBE_DEFER */ in of_unittest_platform_populate()
1255 np = of_find_node_by_path("/testcase-data/testcase-device2"); in of_unittest_platform_populate()
1260 "platform testcase-data:testcase-device2: error -ENXIO: IRQ index 0 not found"); in of_unittest_platform_populate()
1265 "platform testcase-data:testcase-device2: error -ENXIO: IRQ index 0 not found"); in of_unittest_platform_populate()
1267 unittest(irq < 0 && irq != -EPROBE_DEFER, in of_unittest_platform_populate()
1268 "device parsing error failed - %d\n", irq); in of_unittest_platform_populate()
1271 np = of_find_node_by_path("/testcase-data/platform-tests"); in of_unittest_platform_populate()
1283 test_bus->dev.of_node = np; in of_unittest_platform_populate()
1287 * registered to catch problems with un-inserted resources. The in of_unittest_platform_populate()
1294 of_platform_populate(np, match, NULL, &test_bus->dev); in of_unittest_platform_populate()
1305 of_platform_depopulate(&test_bus->dev); in of_unittest_platform_populate()
1318 * update_node_properties - adds the properties
1334 child->parent = dup; in update_node_properties()
1343 * compiled with the '-@' option. If you encounter this error, in update_node_properties()
1351 * sets prop->next to NULL in update_node_properties()
1353 for (prop = np->properties; prop != NULL; prop = save_next) { in update_node_properties()
1354 save_next = prop->next; in update_node_properties()
1357 if (ret == -EEXIST && !strcmp(prop->name, "name")) in update_node_properties()
1360 np, prop->name); in update_node_properties()
1366 * attach_node_and_children - attaches nodes
1368 * CAUTION: misleading function name - if node @np already exists in
1396 child = np->child; in attach_node_and_children()
1397 np->child = NULL; in attach_node_and_children()
1401 np->sibling = np->parent->child; in attach_node_and_children()
1402 np->parent->child = np; in attach_node_and_children()
1410 next = child->sibling; in attach_node_and_children()
1417 * unittest_data_add - Reads, copies data from
1431 const int size = __dtb_testcases_end - __dtb_testcases_begin; in unittest_data_add()
1437 return -ENODATA; in unittest_data_add()
1443 return -ENOMEM; in unittest_data_add()
1452 return -ENODATA; in unittest_data_add()
1457 return -ENODATA; in unittest_data_add()
1469 return -EINVAL; in unittest_data_add()
1483 "Duplicate name in testcase-data, renamed to \"duplicate-name#1\""); in unittest_data_add()
1485 /* attach the sub-tree to live tree */ in unittest_data_add()
1486 np = unittest_data_node->child; in unittest_data_add()
1488 struct device_node *next = np->sibling; in unittest_data_add()
1490 np->parent = of_root; in unittest_data_add()
1496 "Duplicate name in testcase-data, renamed to \"duplicate-name#1\""); in unittest_data_add()
1508 struct device *dev = &pdev->dev; in unittest_probe()
1509 struct device_node *np = dev->of_node; in unittest_probe()
1513 return -EINVAL; in unittest_probe()
1519 of_platform_populate(np, NULL, NULL, &pdev->dev); in unittest_probe()
1526 struct device *dev = &pdev->dev; in unittest_remove()
1527 struct device_node *np = dev->of_node; in unittest_remove()
1541 .driver = {
1587 pr_debug("%s(): %s %d %d\n", __func__, chip->label, offset, in unittest_gpio_chip_request()
1601 return -ENOMEM; in unittest_gpio_probe()
1605 devptr->chip.fwnode = dev_fwnode(&pdev->dev); in unittest_gpio_probe()
1606 devptr->chip.label = "of-unittest-gpio"; in unittest_gpio_probe()
1607 devptr->chip.base = -1; /* dynamic allocation */ in unittest_gpio_probe()
1608 devptr->chip.ngpio = 5; in unittest_gpio_probe()
1609 devptr->chip.request = unittest_gpio_chip_request; in unittest_gpio_probe()
1611 ret = gpiochip_add_data(&devptr->chip, NULL); in unittest_gpio_probe()
1614 "gpiochip_add_data() for node @%pfw failed, ret = %d\n", devptr->chip.fwnode, ret); in unittest_gpio_probe()
1624 struct device *dev = &pdev->dev; in unittest_gpio_remove()
1626 dev_dbg(dev, "%s for node @%pfw\n", __func__, devptr->chip.fwnode); in unittest_gpio_remove()
1629 return -EINVAL; in unittest_gpio_remove()
1631 if (devptr->chip.base != -1) in unittest_gpio_remove()
1632 gpiochip_remove(&devptr->chip); in unittest_gpio_remove()
1641 { .compatible = "unittest-gpio", },
1648 .driver = {
1649 .name = "unittest-gpio",
1661 * tests: apply overlays before registering driver in of_unittest_overlay_gpio()
1662 * Similar to installing a driver as a module, the in of_unittest_overlay_gpio()
1663 * driver is registered after applying the overlays. in of_unittest_overlay_gpio()
1670 * - apply overlay_gpio_01 in of_unittest_overlay_gpio()
1671 * - apply overlay_gpio_02a in of_unittest_overlay_gpio()
1672 * - apply overlay_gpio_02b in of_unittest_overlay_gpio()
1673 * - register driver in of_unittest_overlay_gpio()
1675 * register driver will result in in of_unittest_overlay_gpio()
1676 * - probe and processing gpio hog for overlay_gpio_01 in of_unittest_overlay_gpio()
1677 * - probe for overlay_gpio_02a in of_unittest_overlay_gpio()
1678 * - processing gpio for overlay_gpio_02b in of_unittest_overlay_gpio()
1701 * driver is registered in of_unittest_overlay_gpio()
1705 "gpio-<<int>> (line-B-input): hogged as input\n"); in of_unittest_overlay_gpio()
1708 "gpio-<<int>> (line-A-input): hogged as input\n"); in of_unittest_overlay_gpio()
1711 if (unittest(ret == 0, "could not register unittest gpio driver\n")) in of_unittest_overlay_gpio()
1715 "gpio-<<int>> (line-A-input): hogged as input\n"); in of_unittest_overlay_gpio()
1717 "gpio-<<int>> (line-B-input): hogged as input\n"); in of_unittest_overlay_gpio()
1724 unittest_gpio_chip_request_count - chip_request_count); in of_unittest_overlay_gpio()
1727 * tests: apply overlays after registering driver in of_unittest_overlay_gpio()
1729 * Similar to a driver built-in to the kernel, the in of_unittest_overlay_gpio()
1730 * driver is registered before applying the overlays. in of_unittest_overlay_gpio()
1734 * - apply overlay_gpio_03 in of_unittest_overlay_gpio()
1737 * - probe and processing gpio hog. in of_unittest_overlay_gpio()
1744 "gpio-<<int>> (line-D-input): hogged as input\n"); in of_unittest_overlay_gpio()
1752 "gpio-<<int>> (line-D-input): hogged as input\n"); in of_unittest_overlay_gpio()
1759 unittest_gpio_chip_request_count - chip_request_count); in of_unittest_overlay_gpio()
1764 * - apply overlay_gpio_04a in of_unittest_overlay_gpio()
1767 * - probe for overlay_gpio_04a in of_unittest_overlay_gpio()
1784 * - apply overlay_gpio_04b in of_unittest_overlay_gpio()
1787 * - processing gpio for overlay_gpio_04b in of_unittest_overlay_gpio()
1791 "gpio-<<int>> (line-C-input): hogged as input\n"); in of_unittest_overlay_gpio()
1799 "gpio-<<int>> (line-C-input): hogged as input\n"); in of_unittest_overlay_gpio()
1803 unittest_gpio_chip_request_count - chip_request_count); in of_unittest_overlay_gpio()
1840 put_device(&client->dev); in of_path_i2c_client_exists()
1874 base = "/testcase-data/overlay-node/test-bus"; in unittest_path()
1877 base = "/testcase-data/overlay-node/test-bus/i2c-test-bus"; in unittest_path()
1883 snprintf(buf, sizeof(buf) - 1, "%s/test-unittest%d", base, nr); in unittest_path()
1884 buf[sizeof(buf) - 1] = '\0'; in unittest_path()
1907 snprintf(buf, sizeof(buf) - 1, in overlay_name_from_nr()
1909 buf[sizeof(buf) - 1] = '\0'; in overlay_name_from_nr()
1914 static const char *bus_path = "/testcase-data/overlay-node/test-bus";
1937 track_ovcs_id_cnt--; in of_unittest_untrack_overlay()
1950 ovcs_id = track_ovcs_id[track_ovcs_id_cnt - 1]; in of_unittest_remove_tracked_overlays()
1951 overlay_nr = track_ovcs_id_overlay_nr[track_ovcs_id_cnt - 1]; in of_unittest_remove_tracked_overlays()
1954 if (ret == -ENODEV) { in of_unittest_remove_tracked_overlays()
1977 return -EFAULT; in of_unittest_apply_overlay()
1997 return -EINVAL; in of_unittest_apply_overlay_check()
2013 return -EINVAL; in of_unittest_apply_overlay_check()
2032 return -EINVAL; in of_unittest_apply_revert_overlay_check()
2049 return -EINVAL; in of_unittest_apply_revert_overlay_check()
2068 return -EINVAL; in of_unittest_apply_revert_overlay_check()
2080 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_0()
2086 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_0()
2100 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_1()
2106 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_1()
2121 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_2()
2127 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_2()
2140 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_3()
2146 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_3()
2170 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_5()
2176 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_5()
2210 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_6()
2224 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_6()
2227 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_6()
2241 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_6()
2257 for (i = 1; i >= 0; i--) { in of_unittest_overlay_6()
2297 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_8()
2306 …mory leak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_8()
2317 …will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unittest8/prope… in of_unittest_overlay_8()
2323 …will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/test-unittest8/prope… in of_unittest_overlay_8()
2337 …rlay: node_overlaps_later_cs: #6 overlaps with #7 @/testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_8()
2348 …rlay: node_overlaps_later_cs: #6 overlaps with #7 @/testcase-data/overlay-node/test-bus/test-unitt… in of_unittest_overlay_8()
2363 for (i = 1; i >= 0; i--) { in of_unittest_overlay_8()
2391 child_path = kasprintf(GFP_KERNEL, "%s/test-unittest101", in of_unittest_overlay_10()
2443 struct device *dev = &pdev->dev; in unittest_i2c_bus_probe()
2444 struct device_node *np = dev->of_node; in unittest_i2c_bus_probe()
2451 return -EINVAL; in unittest_i2c_bus_probe()
2459 return -ENOMEM; in unittest_i2c_bus_probe()
2462 std->pdev = pdev; in unittest_i2c_bus_probe()
2465 adap = &std->adap; in unittest_i2c_bus_probe()
2467 adap->nr = -1; in unittest_i2c_bus_probe()
2468 strscpy(adap->name, pdev->name, sizeof(adap->name)); in unittest_i2c_bus_probe()
2469 adap->class = I2C_CLASS_DEPRECATED; in unittest_i2c_bus_probe()
2470 adap->algo = &unittest_i2c_algo; in unittest_i2c_bus_probe()
2471 adap->dev.parent = dev; in unittest_i2c_bus_probe()
2472 adap->dev.of_node = dev->of_node; in unittest_i2c_bus_probe()
2473 adap->timeout = 5 * HZ; in unittest_i2c_bus_probe()
2474 adap->retries = 3; in unittest_i2c_bus_probe()
2487 struct device *dev = &pdev->dev; in unittest_i2c_bus_remove()
2488 struct device_node *np = dev->of_node; in unittest_i2c_bus_remove()
2492 i2c_del_adapter(&std->adap); in unittest_i2c_bus_remove()
2498 { .compatible = "unittest-i2c-bus", },
2505 .driver = {
2506 .name = "unittest-i2c-bus",
2514 struct device *dev = &client->dev; in unittest_i2c_dev_probe()
2515 struct device_node *np = client->dev.of_node; in unittest_i2c_dev_probe()
2519 return -EINVAL; in unittest_i2c_dev_probe()
2529 struct device *dev = &client->dev; in unittest_i2c_dev_remove()
2530 struct device_node *np = client->dev.of_node; in unittest_i2c_dev_remove()
2536 { .name = "unittest-i2c-dev" },
2541 .driver = {
2542 .name = "unittest-i2c-dev",
2560 struct device *dev = &client->dev; in unittest_i2c_mux_probe()
2561 struct i2c_adapter *adap = client->adapter; in unittest_i2c_mux_probe()
2562 struct device_node *np = client->dev.of_node, *child; in unittest_i2c_mux_probe()
2570 return -EINVAL; in unittest_i2c_mux_probe()
2573 max_reg = (u32)-1; in unittest_i2c_mux_probe()
2577 if (max_reg == (u32)-1 || reg > max_reg) in unittest_i2c_mux_probe()
2580 nchans = max_reg == (u32)-1 ? 0 : max_reg + 1; in unittest_i2c_mux_probe()
2583 return -EINVAL; in unittest_i2c_mux_probe()
2589 return -ENOMEM; in unittest_i2c_mux_probe()
2594 return -ENODEV; in unittest_i2c_mux_probe()
2605 struct device *dev = &client->dev; in unittest_i2c_mux_remove()
2606 struct device_node *np = client->dev.of_node; in unittest_i2c_mux_remove()
2614 { .name = "unittest-i2c-mux" },
2619 .driver = {
2620 .name = "unittest-i2c-mux",
2635 "could not register unittest i2c device driver\n")) in of_unittest_overlay_i2c_init()
2641 "could not register unittest i2c bus driver\n")) in of_unittest_overlay_i2c_init()
2647 "i2c i2c-1: Added multiplexed i2c bus 2"); in of_unittest_overlay_i2c_init()
2652 "i2c i2c-1: Added multiplexed i2c bus 2"); in of_unittest_overlay_i2c_init()
2655 "could not register unittest i2c mux driver\n")) in of_unittest_overlay_i2c_init()
2677 …ak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/i2c-test-bus/test… in of_unittest_overlay_i2c_12()
2682 …ak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/i2c-test-bus/test… in of_unittest_overlay_i2c_12()
2696 …ak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/i2c-test-bus/test… in of_unittest_overlay_i2c_13()
2702 …ak will occur if overlay removed, property: /testcase-data/overlay-node/test-bus/i2c-test-bus/test… in of_unittest_overlay_i2c_13()
2721 "i2c i2c-1: Added multiplexed i2c bus 3"); in of_unittest_overlay_i2c_15()
2726 "i2c i2c-1: Added multiplexed i2c bus 3"); in of_unittest_overlay_i2c_15()
2752 * ret = -EBUSY which is -16. in of_notify()
2761 of_node_get(nd->overlay); in of_notify()
2766 found = of_find_node_by_name(nd->overlay, "test-unittest16"); in of_notify()
2769 ret = -EBUSY; in of_notify()
2774 found = of_find_node_by_name(nd->overlay, "test-unittest17"); in of_notify()
2777 ret = -EEXIST; in of_notify()
2782 found = of_find_node_by_name(nd->overlay, "test-unittest18"); in of_notify()
2785 ret = -EXDEV; in of_notify()
2790 found = of_find_node_by_name(nd->overlay, "test-unittest19"); in of_notify()
2793 ret = -ENODEV; in of_notify()
2798 of_node_put(nd->overlay); in of_notify()
2799 ret = -EINVAL; in of_notify()
2830 * Applying overlays 16 - 19 will each trigger an error for a in of_unittest_overlay_notify()
2836 /* --- overlay 16 --- */ in of_unittest_overlay_notify()
2838 …_INFO, "OF: overlay: overlay changeset pre-apply notifier error -16, target: /testcase-data/overla… in of_unittest_overlay_notify()
2843 …_INFO, "OF: overlay: overlay changeset pre-apply notifier error -16, target: /testcase-data/overla… in of_unittest_overlay_notify()
2847 /* --- overlay 17 --- */ in of_unittest_overlay_notify()
2849 …INFO, "OF: overlay: overlay changeset post-apply notifier error -17, target: /testcase-data/overla… in of_unittest_overlay_notify()
2854 …INFO, "OF: overlay: overlay changeset post-apply notifier error -17, target: /testcase-data/overla… in of_unittest_overlay_notify()
2864 /* --- overlay 18 --- */ in of_unittest_overlay_notify()
2872 …_INFO, "OF: overlay: overlay changeset pre-remove notifier error -18, target: /testcase-data/overl… in of_unittest_overlay_notify()
2875 …_INFO, "OF: overlay: overlay changeset pre-remove notifier error -18, target: /testcase-data/overl… in of_unittest_overlay_notify()
2876 if (ret == -EXDEV) { in of_unittest_overlay_notify()
2890 /* --- overlay 19 --- */ in of_unittest_overlay_notify()
2898 …INFO, "OF: overlay: overlay changeset post-remove notifier error -19, target: /testcase-data/overl… in of_unittest_overlay_notify()
2900 …INFO, "OF: overlay: overlay changeset post-remove notifier error -19, target: /testcase-data/overl… in of_unittest_overlay_notify()
2901 if (ret == -ENODEV) in of_unittest_overlay_notify()
2912 /* --- overlay 20 --- */ in of_unittest_overlay_notify()
2935 unittest(0, "could not register unittest driver\n"); in of_unittest_overlay()
3064 OVERLAY_INFO(overlay_base, -9999),
3081 OVERLAY_INFO(overlay_16, -EBUSY),
3082 OVERLAY_INFO(overlay_17, -EEXIST),
3092 OVERLAY_INFO(overlay_bad_add_dup_node, -EINVAL),
3093 OVERLAY_INFO(overlay_bad_add_dup_prop, -EINVAL),
3094 OVERLAY_INFO(overlay_bad_phandle, -EINVAL),
3095 OVERLAY_INFO(overlay_bad_symbol, -EINVAL),
3136 for (info = overlays; info && info->name; info++) { in unittest_unflatten_overlay_base()
3137 if (!strcmp(overlay_name, info->name)) { in unittest_unflatten_overlay_base()
3149 if (info->expected_result != -9999) { in unittest_unflatten_overlay_base()
3154 data_size = info->dtb_end - info->dtb_begin; in unittest_unflatten_overlay_base()
3160 size = fdt_totalsize(info->dtb_begin); in unittest_unflatten_overlay_base()
3172 memcpy(new_fdt, info->dtb_begin, size); in unittest_unflatten_overlay_base()
3184 * /proc/device-tree/ contains the updated structure and values from
3196 for (info = overlays; info && info->name; info++) { in overlay_data_apply()
3197 if (!strcmp(overlay_name, info->name)) { in overlay_data_apply()
3207 size = info->dtb_end - info->dtb_begin; in overlay_data_apply()
3211 ret = of_overlay_fdt_apply(info->dtb_begin, size, &info->ovcs_id); in overlay_data_apply()
3213 *ovcs_id = info->ovcs_id; in overlay_data_apply()
3220 if (ret != info->expected_result) in overlay_data_apply()
3222 info->expected_result, ret, overlay_name); in overlay_data_apply()
3224 return (ret == info->expected_result); in overlay_data_apply()
3268 pprev = &overlay_base_root->child; in of_unittest_overlay_high_level()
3269 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3271 *pprev = np->sibling; in of_unittest_overlay_high_level()
3274 pprev = &np->sibling; in of_unittest_overlay_high_level()
3281 pprev = &overlay_base_root->child; in of_unittest_overlay_high_level()
3282 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3285 *pprev = np->sibling; in of_unittest_overlay_high_level()
3288 pprev = &np->sibling; in of_unittest_overlay_high_level()
3295 if (!strcmp(np->full_name, base_child->full_name)) { in of_unittest_overlay_high_level()
3313 for (np = overlay_base_root->child; np; np = np->sibling) in of_unittest_overlay_high_level()
3314 np->parent = of_root; in of_unittest_overlay_high_level()
3318 for (last_sibling = np = of_root->child; np; np = np->sibling) in of_unittest_overlay_high_level()
3322 last_sibling->sibling = overlay_base_root->child; in of_unittest_overlay_high_level()
3324 of_root->child = overlay_base_root->child; in of_unittest_overlay_high_level()
3336 prop->name); in of_unittest_overlay_high_level()
3340 kfree(new_prop->name); in of_unittest_overlay_high_level()
3341 kfree(new_prop->value); in of_unittest_overlay_high_level()
3343 /* "name" auto-generated by unflatten */ in of_unittest_overlay_high_level()
3344 if (!strcmp(prop->name, "name")) in of_unittest_overlay_high_level()
3347 prop->name); in of_unittest_overlay_high_level()
3352 prop->name); in of_unittest_overlay_high_level()
3364 …"OF: overlay: WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/subst… in of_unittest_overlay_high_level()
3366 … WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/fairway-1/status"); in of_unittest_overlay_high_level()
3368 …eak will occur if overlay removed, property: /testcase-data-2/fairway-1/ride@100/track@30/incline-… in of_unittest_overlay_high_level()
3370 …eak will occur if overlay removed, property: /testcase-data-2/fairway-1/ride@100/track@40/incline-… in of_unittest_overlay_high_level()
3372 …"OF: overlay: WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/light… in of_unittest_overlay_high_level()
3374 …"OF: overlay: WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/light… in of_unittest_overlay_high_level()
3376 …"OF: overlay: WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/light… in of_unittest_overlay_high_level()
3397 …"OF: overlay: WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/light… in of_unittest_overlay_high_level()
3399 …"OF: overlay: WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/light… in of_unittest_overlay_high_level()
3401 …"OF: overlay: WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/light… in of_unittest_overlay_high_level()
3403 …eak will occur if overlay removed, property: /testcase-data-2/fairway-1/ride@100/track@40/incline-… in of_unittest_overlay_high_level()
3405 …eak will occur if overlay removed, property: /testcase-data-2/fairway-1/ride@100/track@30/incline-… in of_unittest_overlay_high_level()
3407 … WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/fairway-1/status"); in of_unittest_overlay_high_level()
3409 …"OF: overlay: WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/subst… in of_unittest_overlay_high_level()
3414 …ay: ERROR: multiple fragments add and/or delete node /testcase-data-2/substation@100/motor-1/contr… in of_unittest_overlay_high_level()
3416 …ltiple fragments add, update, and/or delete property /testcase-data-2/substation@100/motor-1/contr… in of_unittest_overlay_high_level()
3422 …ltiple fragments add, update, and/or delete property /testcase-data-2/substation@100/motor-1/contr… in of_unittest_overlay_high_level()
3424 …ay: ERROR: multiple fragments add and/or delete node /testcase-data-2/substation@100/motor-1/contr… in of_unittest_overlay_high_level()
3427 …ay: ERROR: multiple fragments add and/or delete node /testcase-data-2/substation@100/motor-1/elect… in of_unittest_overlay_high_level()
3429 …ltiple fragments add, update, and/or delete property /testcase-data-2/substation@100/motor-1/elect… in of_unittest_overlay_high_level()
3431 …ltiple fragments add, update, and/or delete property /testcase-data-2/substation@100/motor-1/elect… in of_unittest_overlay_high_level()
3437 …ltiple fragments add, update, and/or delete property /testcase-data-2/substation@100/motor-1/elect… in of_unittest_overlay_high_level()
3439 …ltiple fragments add, update, and/or delete property /testcase-data-2/substation@100/motor-1/elect… in of_unittest_overlay_high_level()
3441 …ay: ERROR: multiple fragments add and/or delete node /testcase-data-2/substation@100/motor-1/elect… in of_unittest_overlay_high_level()
3466 pr_info("start of unittest - you will see error messages\n"); in of_unittest()
3482 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest()
3513 pr_info("end of unittest - %i passed, %i failed\n", in of_unittest()