]> git.baikalelectronics.ru Git - kernel.git/commit
of/platform: Unconditionally pause/resume sync state during kernel init
authorSaravana Kannan <saravanak@google.com>
Mon, 9 Dec 2019 19:31:19 +0000 (11:31 -0800)
committerRob Herring <robh@kernel.org>
Fri, 13 Dec 2019 00:39:52 +0000 (18:39 -0600)
commita1363cc66dd19676d9bcf7b21d7731c877e27f64
tree1935e9527d4d4044f4902153db19e47add7aa475
parentde2c5fa6db9afde59a335f4f21213c25c44c61e7
of/platform: Unconditionally pause/resume sync state during kernel init

Commit ba0d2d81870c ("of/platform: Pause/resume sync state during init
and of_platform_populate()") paused/resumed sync state during init only
if Linux had parsed and populated a devicetree.

However, the check for that (of_have_populated_dt()) can change after
of_platform_default_populate_init() executes.  One example of this is
when devicetree unittests are enabled.  This causes an unmatched
pause/resume of sync state. To avoid this, just unconditionally
pause/resume sync state during init.

Fixes: ba0d2d81870c ("of/platform: Pause/resume sync state during init and of_platform_populate()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/platform.c