diff options
| author | Martin Wetterwald <martin@wetterwald.eu> | 2026-10-22 10:29:24 +0200 |
|---|---|---|
| committer | Florian Fainelli <florian.fainelli@broadcom.com> | 2026-11-13 19:36:46 -0800 |
| commit | 109d5fda6c07649d4bb9270fd99f5c75e3e49fde (patch) | |
| tree | 3ecc5f8d6d2c1e7625432fdb33337c028228b40f /tools/perf/scripts/python | |
| parent | 7475ea8b58616b33c04afb976cf0fbaad9dd63fb (diff) | |
platform/raspberrypi: vchiq: register bus at subsys_initcall
Since 6.19-rc1, with CONFIG_BCM2835_VCHIQ=y and CONFIG_SND_BCM2835=y
(both builtin), the sound cards bcm2835_headphones and bcm2835_hdmi are
not detected anymore (vc4-hdmi is not affected).
dmesg shows:
Driver 'bcm2835-audio' was unable to register with bus_type
'vchiq-bus' because the bus was not initialized.
Since the VCHIQ interface was moved out of staging, its bus is no longer
guaranteed to be registered before its client drivers. bcm2835-audio,
still in drivers/staging, registers at device_initcall level and now
runs first.
Register the bus and the platform driver at subsys_initcall so the bus
exists before any client driver, independently of link order. The
platform driver probe already returns -EPROBE_DEFER while the firmware
is not ready, so probing earlier is safe. When built as modules, this is
equivalent to module_init() and nothing changes.
Tested on Raspberry Pi 1B rev2, 1B+, 2B, 3B and 4B with VCHIQ and
bcm2835-audio both builtin and both as modules.
Cc: stable@vger.kernel.org
Fixes: aa125180c673 ("platform/raspberrypi: Destage VCHIQ interface")
Reported-by: Martin Wetterwald <martin@wetterwald.eu>
Closes: https://lore.kernel.org/r/CAFERDQ0FpdVvA5VJxOyRAE_pgxnPVmFx1tkZio5R272j6Bs4tg@mail.gmail.com/
Reviewed-by: Jai Luthra <jai.luthra@ideasonboard.com>
Tested-by: Gaston Gonzalez <gascoar@gmail.com> # Raspberry Pi Zero
Signed-off-by: Martin Wetterwald <martin@wetterwald.eu>
Link: https://lore.kernel.org/r/20261022082927.59030-1-martin@wetterwald.eu
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
