-
Notifications
You must be signed in to change notification settings - Fork 5.2k
pcm512x 1-004d: Failed to reset device: -5 #662
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
Comments
No. |
I think the i2c codec can be registered in the init function of the module that actually wants to use the thing (hifiberry?) Another module seems to be doing that by having i2c_get_adapter / i2c_new_device there, instead of having i2c_register_board_info in the mach file. Should be tested by someone that actually has that add-on board though. |
This is a really good example of HAT coming to the rescue :-) I see three solutions for this:
|
Hi guys. So just to clarify this for me. pcm512x ti codec is only present on B+ and not on earlier version HW? Because this error is not seen on a B version. |
The codec is not present on any Pi, unless you have added a board that includes one. This is an example of Device Tree coming to the rescue. :-p If you update to the latest releases, these errors will go away. The flip side is that if you want to use the i2c, i2s or spi interfaces then you have to enable them. Take a look at the new README in /boot/overlays for an introduction to the topic. |
Cool stuff. Thanks. |
@maxnet okay to close? |
Yes, this issue is not present when using the 3.18 kernel with a device tree. |
Add basic support for Linux 3.14, cherry-pick changes from 3.18.y in order to solve some debugfs warnings and get better support for i2s for BCM2708. - 3.14 lacks BCM2709 support and will not by default be able to use for raspberry pi 2. Below warnings still exists they are harmless and exists due to that snd_soc_pcm512x is triggered to be loaded twice. The problem is solved after device tree support for the driver was introduced in 3.18.y and no easy solution exists to solve this problem on older kernel versions (see raspberrypi/linux#662 for more info). pcm512x 1-004c: Failed to reset device: -5 pcm512x: probe of 1-004c failed with error Remove sl030raspberrypii2ckernel.patch since it will not apply anymore and its content seems to be obsolite after cherry-picking '558d0bf Fix grabbing lock from atomic context in i2c driver'. [Support #57] Signed-off-by: Petter Mabäcker <[email protected]> Signed-off-by: Andrei Gherzan <[email protected]>
I'm not sure I understand the above discussion, but I see the error on my Raspberries (all are on
The config.txt files all look like this:
How can I make the errors go away? |
Enable Device Tree (comment out/delete the device_tree= line). |
@pelwell : That just makes the kernel panicky. Just tried it to make sure. Kernel panics at boot. Can't remove the |
Upload your crash logs somewhere in case they say something useful. If you have to keep DT disabled then you'll need to blacklist the modules you don't want. |
Logo in SVG
Add basic support for Linux 3.14, cherry-pick changes from 3.18.y in order to solve some debugfs warnings and get better support for i2s for BCM2708. - 3.14 lacks BCM2709 support and will not by default be able to use for raspberry pi 2. Below warnings still exists they are harmless and exists due to that snd_soc_pcm512x is triggered to be loaded twice. The problem is solved after device tree support for the driver was introduced in 3.18.y and no easy solution exists to solve this problem on older kernel versions (see raspberrypi/linux#662 for more info). pcm512x 1-004c: Failed to reset device: -5 pcm512x: probe of 1-004c failed with error Remove sl030raspberrypii2ckernel.patch since it will not apply anymore and its content seems to be obsolite after cherry-picking '558d0bf Fix grabbing lock from atomic context in i2c driver'. [Support #57] Signed-off-by: Petter Mabäcker <[email protected]> Signed-off-by: Andrei Gherzan <[email protected]>
This probably won't show up on Raspbian because i2c is blacklisted by default there, but on other distributions, some errors are ruining previously quiet console output:
Seems udev is triggered to load the snd_soc_pcm512x module twice and snd_soc_wm8804 once, due to the i2c declarations here:
https://github.com/raspberrypi/linux/blob/rpi-3.12.y/arch/arm/mach-bcm2708/bcm2708.c#L663
https://github.com/raspberrypi/linux/blob/rpi-3.12.y/arch/arm/mach-bcm2708/bcm2708.c#L708
https://github.com/raspberrypi/linux/blob/rpi-3.12.y/arch/arm/mach-bcm2708/bcm2708.c#L677
Should there really be static declarations for hardware add-ons that may or may not be present?
The text was updated successfully, but these errors were encountered: