brintos

brintos / linux-shallow public Read only

0
0
Text · 1.1 KiB · e03f791 Raw
39 lines · plain
1// SPDX-License-Identifier: GPL-2.02/dts-v1/;3/plugin/;4 5/*6 * &electric_1/motor-1/electric and &spin_ctrl_1/electric are the same node:7 *   /testcase-data-2/substation@100/motor-1/electric8 *9 * Thus the property "rpm_avail" in each fragment will10 * result in an attempt to update the same property twice.11 * This will result in an error and the overlay apply12 * will fail.13 *14 * The previous version of this test did not include the extra15 * level of node 'electric'.  That resulted in the 'rpm_avail'16 * property being located in the pre-existing node 'motor-1'.17 * Modifying a property results in a WARNING that a memory leak18 * will occur if the overlay is removed.  Since the overlay apply19 * fails, the memory leak does actually occur, and kmemleak will20 * further report the memory leak if CONFIG_DEBUG_KMEMLEAK is21 * enabled.  Adding the overlay node 'electric' avoids the22 * memory leak and thus people who use kmemleak will not23 * have to debug this non-problem again.24 */25 26&electric_1 {27	motor-1 {28		electric {29			rpm_avail = <100>;30		};31	};32};33 34&spin_ctrl_1 {35	electric {36		rpm_avail = <100 200>;37	};38};39