]> git.baikalelectronics.ru Git - kernel.git/commit
of: overlay: update phandle cache on overlay apply and remove
authorFrank Rowand <frank.rowand@sony.com>
Thu, 12 Jul 2018 21:00:07 +0000 (14:00 -0700)
committerRob Herring <robh@kernel.org>
Mon, 16 Jul 2018 14:41:32 +0000 (08:41 -0600)
commit87b7cd3af0759dda8664111530055b1cd0bf1353
treeea6672754a6ec83753a9a3b63bbb3dd0c68ec708
parentf3c548d6817f22d15a7934d3b71f4921c33d0c41
of: overlay: update phandle cache on overlay apply and remove

A comment in the review of the patch adding the phandle cache said that
the cache would have to be updated when modules are applied and removed.
This patch implements the cache updates.

Fixes: 2025451f9289 ("of: cache phandle nodes to reduce cost of of_find_node_by_phandle()")
Reported-by: Alan Tull <atull@kernel.org>
Suggested-by: Alan Tull <atull@kernel.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c
drivers/of/of_private.h
drivers/of/overlay.c