RE: [PATCH v4 1/8] clk: clkdev/of_clk - add managed lookup and provider registrations
From: Vaittinen, Matti
Date: Tue Dec 04 2018 - 14:14:33 EST
Hello Stephen,
.
> > I think we should use parent device's node, not the paren node in DT,
> > right? But I agree, we should only look "one level up in the chain".
> Are these two things different? I'm suggesting looking at
> device_node::parent and trying to find a #clock-cells property.
I thought that MFD sub-devices may completely lack the DT node but I will verify this tomorrow. BTW, I already did the patch version 6 which checks the dev->parent->of_node if #clock-cells is not found from device's own node or if own node is NULL.
Br. Matti Vaittinen