]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: add support for device re-parenting
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 7 Sep 2020 14:46:33 +0000 (17:46 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 22 Sep 2020 08:27:18 +0000 (11:27 +0300)
commitcfecbaf4e768991056a88d3a7a3daf4b4baf8038
tree5f3b366650bcddfce7ee3462417a6de3669ca57b
parentb04da9fcf78e233e70ea5ace757c0b8b95bb2459
dm: core: add support for device re-parenting

In common clock framework the relation b/w parent and child clocks is
determined based on the udevice parent/child information. A clock
parent could be changed based on devices needs. In case this is happen
the functionalities for clock who's parent is changed are broken. Add
a function that reparent a device. This will be used in clk-uclass.c
to reparent a clock device.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
include/dm/device-internal.h
test/dm/core.c