clk: fix clock tree dump to properly dump out every registered clock
authorTero Kristo <t-kristo@ti.com>
Fri, 11 Jun 2021 08:45:07 +0000 (11:45 +0300)
committerLokesh Vutla <lokeshvutla@ti.com>
Fri, 11 Jun 2021 11:04:52 +0000 (16:34 +0530)
commit1a725e229096385b4fb8d59247584435779d0161
treea3232bc38d95ba547115f1213a41727848cd5c22
parentfc960cb6fb94c77d1245e7f39b49d7278f480d62
clk: fix clock tree dump to properly dump out every registered clock

Some clocks are not associated to a DM node, so just parsing the DM is not
enough. This is especially true for root clocks, which typically don't have
any parents. Instead, fetch every registered UCLASS_CLK instance, and dump
these out.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tero Kristo <kristo@kernel.org>
cmd/clk.c