Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snd_soc_hifiberry_dacplus broken in 5.4.21 #3481

Closed
fichtennadel opened this issue Feb 23, 2020 · 6 comments
Closed

snd_soc_hifiberry_dacplus broken in 5.4.21 #3481

fichtennadel opened this issue Feb 23, 2020 · 6 comments

Comments

@fichtennadel
Copy link

Describe the bug
Using kernel 5.4.21 module snd_soc_hifiberry_dacplus fails to initialize the hifiberry hardware.

To reproduce
Raspi 3 with hifiberry DAC+ , boot kernel 5.4.21 (not ok) or 5.4.11 (ok)

Expected behaviour
module loads, initializes hifiberry DAC+, aplay -l lists sndrpihifiberry [snd_rpi_hifiberry_dacplus]
dmesg | grep hifi shows

[    6.829712] snd-rpi-hifiberry-dacplus soc: sound: ASoC: failed to init link HiFiBerry DAC+: -517
[    7.112002] snd-rpi-hifiberry-dacplus soc: sound: ASoC: failed to init link HiFiBerry DAC+: -517
[    7.429348] snd-rpi-hifiberry-dacplus soc: sound: ASoC: failed to init link HiFiBerry DAC+: -517
[    7.632537] snd-rpi-hifiberry-dacplus soc: sound: pcm512x-hifi <-> 3f203000.i2s mapping ok

Actual behaviour
module loads but fails to initialize hifiberry DAC+, therefore aplay -l lists aplay: device_list:272: no soundcards found...
dmesg | grep hifi shows

[    6.829712] snd-rpi-hifiberry-dacplus soc: sound: ASoC: failed to init link HiFiBerry DAC+: -517
[    7.112002] snd-rpi-hifiberry-dacplus soc: sound: ASoC: failed to init link HiFiBerry DAC+: -517
[    7.429348] snd-rpi-hifiberry-dacplus soc: sound: ASoC: failed to init link HiFiBerry DAC+: -517

Please note the missing last line, this means the driver failed to load or initialize the hifiberry

Last working kernel version was 5.4.11 , can be reproduced by down/upgrading (see links to forum discusssion below)

Logs
dmesg see https://paste.kodi.tv/sasuxiqure

Additional info
see also discussions on
https://forum.kodi.tv/showthread.php?tid=343068&pid=2926110#pid2926110
and
https://support.hifiberry.com/hc/en-us/community/posts/360009449558-module-snd-soc-hifiberry-dacplus-broken-in-kernel-5-4-18

@popcornmix
Copy link
Collaborator

I think we want this: https://patchwork.kernel.org/patch/11394967/ from @HiassofT

@HiassofT
Copy link
Contributor

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

pelwell added a commit that referenced this issue Feb 27, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell
Copy link
Contributor

pelwell commented 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.

pelwell added a commit that referenced this issue Feb 27, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
pelwell added a commit that referenced this issue Feb 27, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell
Copy link
Contributor

pelwell commented 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 /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.

pelwell referenced this issue Feb 28, 2020
commit 4b2d246 upstream.

The fixed clocks doesn't form some kind of bus. So let's remove it.
This fixes the follow DT schema warnings:

clocks: clock@3:reg:0: [3] is too short
clocks: clock@4:reg:0: [4] is too short
clocks: $nodename:0: 'clocks' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$'
clocks: #size-cells:0:0: 0 is not one of [1, 2]
clocks: 'ranges' is a required property
clock@3: 'reg' does not match any of the regexes: 'pinctrl-[0-9]+'
clock@4: 'reg' does not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
pelwell added a commit that referenced this issue Feb 28, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
pelwell added a commit that referenced this issue Feb 28, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
@fichtennadel
Copy link
Author

Builds over at https://forum.kodi.tv/showthread.php?tid=343068&pid=2928218#pid2928218 confirm the fix, hifiberry dacplus card initializes successfully now.

pelwell added a commit that referenced this issue Mar 2, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Mar 6, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 6, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Mar 10, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 10, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Mar 10, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Mar 23, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 23, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Mar 23, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 23, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Mar 23, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Mar 23, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Mar 27, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 27, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Mar 27, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Mar 27, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Apr 1, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Apr 1, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue May 4, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue May 4, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue May 11, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue May 11, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
@popcornmix
Copy link
Collaborator

Closing as issue is fixed.

popcornmix pushed a commit that referenced this issue May 20, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue May 20, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue May 20, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue May 20, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue May 20, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Jun 3, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jun 3, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Jun 3, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
jpuhlman pushed a commit to MontaVista-OpenSourceTechnology/linux-mvista that referenced this issue Jun 8, 2020
Source: kernel.org
MR: 103889
Type: Enhancement
Disposition: Merged from https://github.com/raspberrypi/linux.git rpi-5.4.y
ChangeID: 95a85861eecce585b6878c816e04d4a519f4998d
Description:

Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: raspberrypi/linux#3481
Fixes: [1] 238506ebdea7 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
jpuhlman pushed a commit to MontaVista-OpenSourceTechnology/linux-mvista that referenced this issue Jun 8, 2020
Source: kernel.org
MR: 103889
Type: Enhancement
Disposition: Merged from https://github.com/raspberrypi/linux.git rpi-5.4.y
ChangeID: e955b2581e016651e0735a3b8094e3e213138f44
Description:

Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: raspberrypi/linux#3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Corey Minyard <cminyard@mvista.com>
popcornmix pushed a commit that referenced this issue Jun 10, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jun 10, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Jun 10, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Jun 17, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Jun 17, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jun 17, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Jun 26, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jun 26, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Jul 1, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jul 1, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
popcornmix pushed a commit that referenced this issue Jul 13, 2020
Commit [1] ([2] upstream) removed the "simple-bus" compatible string,
"#address-cells" and "#size-cells" to fix some DT scheme warnings. In
doing so it prevented the child clocks from being instantiated - the
node might as well be absent.

Fix the problem (at least with regards to functionality) by restoring
"simple-bus" and the sizes.

See: #3481
Fixes: [1] 238506e ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Fixes: [2] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Jul 13, 2020
Change [1] removes the simple-bus compatible string from the "/clocks"
node, preventing any custom clocks placed there from being initialised.
Rather than reinstate the compatible string and trigger DT warnings at
kernel build time, change the overlays to instantiate those clocks under
the root node ("/").

See: #3481

Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] 4b2d246 ("ARM: dts: bcm283x: Remove simple-bus from fixed clocks")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants