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)
commitf4056e705b2ef7f123a188f6aee23ade70e7d793
treeb8c873eb594157146d8f50b112d7d842d4892731
parent2f7afc343d49eea0bf88ea5fc8cb3afc392356c3
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