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

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