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)
commitee9b280e17dce51c44e1d04d11eb0a4acd0ee1a9
tree1935e9527d4d4044f4902153db19e47add7aa475
parent70c812106c87981a087fafacab004aee37193405
of/platform: Unconditionally pause/resume sync state during kernel init

Commit 5e6669387e22 ("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: 5e6669387e22 ("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