You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It shouldn't hurt to include this patch until it dribbles down into stable trees, it'll at least avoid the warning and splat in regulator core.
The real issue with the hifiberry dacplus card seems to be though that it's (downstream) clock driver isn't loaded/loading (the warning/splat is just a consequence of that) - see eg lsmod output in the dmesg info linked above.
Most likely the clock driver and/or DT overlay need some changes after the clocks DT changes in 3292779
@lategoodbye I now understand what is happening, and I owe you an apology. of_clk_init (called early in the boot sequence) searches the tree for all compatible strings for drivers declared with CLK_OF_DECLARE, including clk_fixed_rate. This is why your change is fine for upstream DTBs.
AFAIK the HifiBerry clock driver can't make use of CLK_OF_DECLARE because it's a module, so it does have to rely on something else causing its driver to be instantiated. If we say that /clocks is only for static system clocks then the overlays that declare custom clocks have to be changed to put the clock node somewhere that will be probed - either in the root or under one of the other simple-bus nodes; as an overlay it shouldn't bother any of the kernel checkers.
Activity
popcornmix commentedon Feb 24, 2020
I think we want this: https://patchwork.kernel.org/patch/11394967/ from @HiassofT
HiassofT commentedon Feb 24, 2020
It shouldn't hurt to include this patch until it dribbles down into stable trees, it'll at least avoid the warning and splat in regulator core.
The real issue with the hifiberry dacplus card seems to be though that it's (downstream) clock driver isn't loaded/loading (the warning/splat is just a consequence of that) - see eg lsmod output in the dmesg info linked above.
Most likely the clock driver and/or DT overlay need some changes after the clocks DT changes in 3292779
ARM: dts: bcm283x: Restore simple-bus to /clocks
pelwell commentedon Feb 27, 2020
By removing "simple-bus", the clock DT change broke the instantiation of its children. I've fixed it with a partial reversion.
ARM: dts: bcm283x: Restore simple-bus to /clocks
ARM: dts: bcm283x: Restore simple-bus to /clocks
pelwell commentedon Feb 28, 2020
@lategoodbye I now understand what is happening, and I owe you an apology. of_clk_init (called early in the boot sequence) searches the tree for all compatible strings for drivers declared with CLK_OF_DECLARE, including clk_fixed_rate. This is why your change is fine for upstream DTBs.
AFAIK the HifiBerry clock driver can't make use of CLK_OF_DECLARE because it's a module, so it does have to rely on something else causing its driver to be instantiated. If we say that
/clocksis only for static system clocks then the overlays that declare custom clocks have to be changed to put the clock node somewhere that will be probed - either in the root or under one of the othersimple-busnodes; as an overlay it shouldn't bother any of the kernel checkers.ARM: dts: bcm283x: Remove simple-bus from fixed clocks
ARM: dts: overlays: Create custom clocks in /
ARM: dts: overlays: Create custom clocks in /
fichtennadel commentedon Mar 1, 2020
Builds over at https://forum.kodi.tv/showthread.php?tid=343068&pid=2928218#pid2928218 confirm the fix, hifiberry dacplus card initializes successfully now.
ARM: dts: overlays: Create custom clocks in /
ARM: dts: bcm283x: Restore simple-bus to /clocks
ARM: dts: overlays: Create custom clocks in /
ARM: dts: bcm283x: Restore simple-bus to /clocks
42 remaining items
ARM: dts: overlays: Create custom clocks in /
ARM: dts: bcm283x: Restore simple-bus to /clocks
ARM: dts: overlays: Create custom clocks in /
ARM: dts: bcm283x: Restore simple-bus to /clocks
ARM: dts: overlays: Create custom clocks in /
ARM: dts: overlays: Create custom clocks in /
ARM: dts: overlays: Create custom clocks in /
ARM: dts: bcm283x: Restore simple-bus to /clocks
ARM: dts: overlays: Create custom clocks in /
ARM: dts: bcm283x: Restore simple-bus to /clocks
ARM: dts: overlays: Create custom clocks in /
ARM: dts: bcm283x: Restore simple-bus to /clocks
ARM: dts: overlays: Create custom clocks in /
ARM: dts: bcm283x: Restore simple-bus to /clocks
ARM: dts: overlays: Create custom clocks in /