Skip to content
Unverified Commit c0317ad4 authored by Gabriel Dalimonte's avatar Gabriel Dalimonte Committed by Maxime Ripard
Browse files

drm/vc4: fix infinite EPROBE_DEFER loop

`vc4_hdmi_audio_init` calls `devm_snd_dmaengine_pcm_register` which may
return EPROBE_DEFER. Calling `drm_connector_hdmi_audio_init` adds a
child device. The driver model docs[1] state that adding a child device
prior to returning EPROBE_DEFER may result in an infinite loop.

[1] https://www.kernel.org/doc/html/v6.14/driver-api/driver-model/driver.html



Fixes: 9640f143 ("drm/vc4: hdmi: switch to using generic HDMI Codec infrastructure")
Signed-off-by: default avatarGabriel Dalimonte <gabriel.dalimonte@gmail.com>
Link: https://lore.kernel.org/r/20250601-vc4-audio-inf-probe-v2-1-9ad43c7b6147@gmail.com


Signed-off-by: default avatarMaxime Ripard <mripard@kernel.org>
parent 779a0c9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment