[PATCH v2 00/10] ASoC: ti: Improve probe error handling

phucduc.bui@gmail.com posted 10 patches 1 week, 2 days ago
There is a newer version of this series
sound/soc/ti/ams-delta.c        |  4 ++--
sound/soc/ti/davinci-evm.c      |  3 +--
sound/soc/ti/j721e-evm.c        |  7 +++----
sound/soc/ti/omap-abe-twl6040.c | 15 ++++++---------
sound/soc/ti/omap-dmic.c        |  7 +++----
sound/soc/ti/omap-hdmi.c        |  6 ++----
sound/soc/ti/omap-twl4030.c     | 15 ++++++---------
sound/soc/ti/rx51.c             | 28 ++++++++++++----------------
8 files changed, 35 insertions(+), 50 deletions(-)
[PATCH v2 00/10] ASoC: ti: Improve probe error handling
Posted by phucduc.bui@gmail.com 1 week, 2 days ago
From: bui duc phuc <phucduc.bui@gmail.com>

Hi all,

This series cleans up probe error handling across several TI ASoC
drivers.

The changes fall into two categories:
 1.Replace dev_err() with dev_err_probe() when reporting probe
   failures. This preserves the original error code while suppressing
   unnecessary log messages for deferred probe errors.
 2.Preserve the original error codes returned by helper functions
   instead of converting them to -ENODEV, and remove redundant error
   messages where the helper already reports the failure.

Build-tested only.

Changes in v2:
 - Add missing parentheses to `snd_soc_register_card()` (Christophe).
 - Remove an extra blank line (Christophe).

Best regards,
Phuc

bui duc phuc (10):
  ASoC: ti: ams-delta: Use dev_err_probe() for error handling
  ASoC: ti: davinci-evm: Use dev_err_probe() for error handling
  ASoC: ti: j721e-evm: Return the original error from card name parsing
  ASoC: ti: omap-abe-twl6040: Preserve error code and drop redundant log
  ASoC: ti: omap-abe-twl6040: Use dev_err_probe() for error handling
  ASoC: ti: omap-dmic: Use dev_err_probe() for error handling
  ASoC: ti: omap-hdmi: Use dev_err_probe() for error handling
  ASoC: ti: omap-twl4030: Return the original error code
  ASoC: ti: omap-twl4030: Use dev_err_probe() for error handling
  ASoC: ti: rx51: Use dev_err_probe() for error handling

 sound/soc/ti/ams-delta.c        |  4 ++--
 sound/soc/ti/davinci-evm.c      |  3 +--
 sound/soc/ti/j721e-evm.c        |  7 +++----
 sound/soc/ti/omap-abe-twl6040.c | 15 ++++++---------
 sound/soc/ti/omap-dmic.c        |  7 +++----
 sound/soc/ti/omap-hdmi.c        |  6 ++----
 sound/soc/ti/omap-twl4030.c     | 15 ++++++---------
 sound/soc/ti/rx51.c             | 28 ++++++++++++----------------
 8 files changed, 35 insertions(+), 50 deletions(-)

-- 
2.43.0