[PATCH v3 00/14] ASoC: tegra: Add error logging for probe and callback failures
From: Sheetal
Date: Wed Mar 25 2026 - 06:21:30 EST
Log errors in probe and runtime error paths across Tegra audio drivers.
Use dev_err_probe() in probe paths and dev_err() in runtime callbacks.
Skip redundant logging where the underlying API already reports errors.
Changes in v3:
- Split single patch into per-driver patch series for easier review
and incremental merging.
- Drop dev_err() from tegra_ahub_put_value_enum() since the error path
is userspace-triggerable and would allow log spamming.
- Drop dev_err() from tegra210_mixer_set_audio_cif() since the driver
advertises S8 format support but this function doesn't handle it,
creating a userspace-triggerable log spam path.
Changes in v2:
- Use dev_err_probe() in all probe error paths as a defensive measure,
instead of only where -EPROBE_DEFER is currently known to be returned.
- Drop redundant error logging for devm_platform_ioremap_resource() and
devm_ioremap_resource() since these APIs already log errors internally.
Sheetal (14):
ASoC: tegra: Use dev_err_probe() in tegra186_asrc probe
ASoC: tegra: Use dev_err_probe() in tegra186_dspk probe
ASoC: tegra: Add error logging in tegra210_admaif driver
ASoC: tegra: Add error logging in tegra210_adx driver
ASoC: tegra: Use dev_err_probe() in tegra210_ahub probe
ASoC: tegra: Add error logging in tegra210_amx driver
ASoC: tegra: Use dev_err_probe() in tegra210_dmic probe
ASoC: tegra: Add error logging in tegra210_i2s driver
ASoC: tegra: Use dev_err_probe() in OPE, PEQ and MBDRC drivers
ASoC: tegra: Use dev_err_probe() in tegra210_mixer probe
ASoC: tegra: Use dev_err_probe() in tegra210_mvc probe
ASoC: tegra: Use dev_err_probe() in tegra210_sfc probe
ASoC: tegra: Use dev_err_probe() in tegra_asoc_machine probe
ASoC: tegra: Use dev_err_probe() in tegra_audio_graph_card probe
sound/soc/tegra/tegra186_asrc.c | 7 ++--
sound/soc/tegra/tegra186_dspk.c | 15 +++----
sound/soc/tegra/tegra210_admaif.c | 18 ++++----
sound/soc/tegra/tegra210_adx.c | 13 +++---
sound/soc/tegra/tegra210_ahub.c | 18 ++++----
sound/soc/tegra/tegra210_amx.c | 9 ++--
sound/soc/tegra/tegra210_dmic.c | 14 +++----
sound/soc/tegra/tegra210_i2s.c | 18 ++++----
sound/soc/tegra/tegra210_mbdrc.c | 10 ++---
sound/soc/tegra/tegra210_mixer.c | 7 ++--
sound/soc/tegra/tegra210_mvc.c | 7 ++--
sound/soc/tegra/tegra210_ope.c | 19 ++++-----
sound/soc/tegra/tegra210_peq.c | 10 ++---
sound/soc/tegra/tegra210_sfc.c | 7 ++--
sound/soc/tegra/tegra_asoc_machine.c | 70 ++++++++++++++++----------------
sound/soc/tegra/tegra_audio_graph_card.c | 21 ++++++----
16 files changed, 128 insertions(+), 135 deletions(-)
--
2.17.1