Skip to content

mmc: bcm2835-mmc: Warn once when the inhibit bits stay set - #7813

Open
igorpecovnik wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
igorpecovnik:bcm2835-mmc-inhibit-warn-once
Open

igorpecovnik wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
igorpecovnik:bcm2835-mmc-inhibit-warn-once

Conversation

@igorpecovnik

Copy link
Copy Markdown

At boot, the first command on the Wi-Fi SDIO controller (fe300000.mmcnr) of a Pi 400 can find the inhibit bits still set. bcm2835_mmc_send_command() then prints "Controller never released inhibit bit(s)" with pr_err() on the console of every boot. The core retries the command, and the SDIO card is found about 85 ms later. Wi-Fi works.

This change prints the message once with dev_warn_once(). A later failure still shows once in the log. The command still fails with -EIO, and the register dump stays at debug level.

Tested on a Pi 400 with rpi-6.18.y (6.18.65): after boot the message shows once in dmesg -l warn and not in dmesg -l err. The SDIO card and wlan0 come up.

Carried in Armbian as armbian/build#11609.

At boot, the first command on the Wi-Fi SDIO controller of a Pi 400
can find the inhibit bits still set. The core retries the command, and
the SDIO card is found about 85 ms later. Wi-Fi works.

pr_err() puts this message on the console of every boot. Warn once at
warning level instead. A later failure still shows once in the log.

Assisted-by: Claude Opus 5.5
Signed-off-by: Igor Pecovnik <igor@armbian.com>
@popcornmix

Copy link
Copy Markdown
Collaborator

I've attempted to reproduce this without success (on a Pi4 and Pi400).
e.g. 12 boots on Pi400 with wifi enabled and no inhibit error.

I don't think we'll merge this without understanding it - especially as it can hide other mmc driver's complaints (e.g. the sdcard).

How repeatable is this for you? Does it occur after a power cycle or reboot?
Any custom settings in config.txt / cmdline.txt?
Any other hardware connected?
Can you reproduce with an RPiOS image?

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

Successfully merging this pull request may close these issues.

2 participants