]> git.baikalelectronics.ru Git - kernel.git/commit
of: unittest: add overlay gpio test to catch gpio hog problem
authorFrank Rowand <frank.rowand@sony.com>
Thu, 20 Feb 2020 18:40:20 +0000 (12:40 -0600)
committerRob Herring <robh@kernel.org>
Wed, 26 Feb 2020 16:42:04 +0000 (10:42 -0600)
commitd84d37399cfdadfd779f656a1ea93e5e0d445df5
treeb8c873eb594157146d8f50b112d7d842d4892731
parent16840acfbd0841f9524031e41c9c50036e1234de
of: unittest: add overlay gpio test to catch gpio hog problem

Geert reports that gpio hog nodes are not properly processed when
the gpio hog node is added via an overlay reply and provides an
RFC patch to fix the problem [1].

Add a unittest that shows the problem.  Unittest will report "1 failed"
test before applying Geert's RFC patch and "0 failed" after applying
Geert's RFC patch.

[1] https://lore.kernel.org/linux-devicetree/20191230133852.5890-1-geert+renesas@glider.be/

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest-data/Makefile
drivers/of/unittest-data/overlay_gpio_01.dts [new file with mode: 0644]
drivers/of/unittest-data/overlay_gpio_02a.dts [new file with mode: 0644]
drivers/of/unittest-data/overlay_gpio_02b.dts [new file with mode: 0644]
drivers/of/unittest-data/overlay_gpio_03.dts [new file with mode: 0644]
drivers/of/unittest-data/overlay_gpio_04a.dts [new file with mode: 0644]
drivers/of/unittest-data/overlay_gpio_04b.dts [new file with mode: 0644]
drivers/of/unittest.c