Skip to content

Add common wait_for_boot and reset_and_boot apis for cs35l41 drivers

Stefan Binding linux-sound lkml 1 version Applied

Status from this message: Applied both patches now. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2ALSA: hda: cs35l41: Add common wait_for_boot api and reset_and_boot apiinclude/sound/cs35l41.h sound/hda/codecs/side-codecs/cs35l41_hda.c sound/soc/codecs/cs35l41-lib.c+71 -310 replies
2/2ASoC: cs35l41: Use common wait_for_boot and reset_and_boot apissound/soc/codecs/cs35l41.c+3 -151 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMark Brown
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] Add common wait_for_boot and reset_and_boot apis for cs35l41 drivers

Both HDA and ASoC CS35L41 drivers use a similar meachnism for waiting for the chip to boot: regmap_read_poll_timeout().
However, this method can break if the macro returns early if a regmap_read() call fails.
Replace this macro with a loop which does not break on regmap_read() failure.

In addition, ensure the software reset prior to boot does not fail, and ensure it is additionally run in the ASoC driver.

Stefan Binding (2):
ALSA: hda: cs35l41: Add common wait_for_boot api and reset_and_boot
api
ASoC: cs35l41: Use common wait_for_boot and reset_and_boot apis

 include/sound/cs35l41.h                    |  2 +
 sound/hda/codecs/side-codecs/cs35l41_hda.c | 33 +----------
 sound/soc/codecs/cs35l41-lib.c             | 67 ++++++++++++++++++++++
 sound/soc/codecs/cs35l41.c                 | 18 +-----
 4 files changed, 74 insertions(+), 46 deletions(-)
Signature · 1 line
2.43.0