Skip to content

ASoC: ti: davinci-mcasp: Handle incomplete DT node gracefully

Peter Ujfalusi alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ASoC: ti: davinci-mcasp: Use platform_get_irq_byname_optionalsound/soc/ti/davinci-mcasp.c+6 -60 replies
2/4ASoC: ti: davinci-mcasp: Remove legacy dma_request parsingsound/soc/ti/davinci-mcasp.c+3 -540 replies
3/4ASoC: ti: davinci-mcasp: Simplify the configuration parameter handlingsound/soc/ti/davinci-mcasp.c+60 -1040 replies
4/4ASoC: ti: davinci-mcasp: Handle missing required DT propertiessound/soc/ti/davinci-mcasp.c+58 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] ASoC: ti: davinci-mcasp: Handle incomplete DT node gracefully

Hi,

The series is inspired by the effort to standardize TI's arm64 dtsi files to keep all nodes in 'okay' state and let the board dts files disable not needed peripherals (and not properly configured):
https://lore.kernel.org/lkml/[email protected]/

In the unlikely (or likely?) event when the dts misses to disable the McASP node which is not configured we currenly and luckily just manage to not crash as we had fixup code in place for legacy pdata boots.
This however prints out a message which does not really help to identify the issue.

This series will reduce some of the noise during boot (first patch) then adds the needed changes to handle the variations of 'okay':
A - have all required DT properties for audio
B - gpiochip is enabled

A && !B  -> everything is OK for audio, no gpiochip registered
A && B   -> everything is OK for audio, gpiochip is registered
!A && B  -> audio is not OK, gpiochip is registered. dev_dbg() for audio and do

not register SOC DAI and PCM
!A && !B -> audio is not OK, no gpiochip. dev_err() and fail the probe

Regards,
Peter
---
Peter Ujfalusi (4):
ASoC: ti: davinci-mcasp: Use platform_get_irq_byname_optional
ASoC: ti: davinci-mcasp: Remove legacy dma_request parsing
ASoC: ti: davinci-mcasp: Simplify the configuration parameter handling
ASoC: ti: davinci-mcasp: Handle missing required DT properties

 sound/soc/ti/davinci-mcasp.c | 294 ++++++++++++++---------------------
 1 file changed, 119 insertions(+), 175 deletions(-)
Signature · 4 lines
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki