public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ALSA: cs35l56: Fix for races when soft-resetting on SPI
@ 2025-02-25 13:18 Richard Fitzgerald
  2025-02-25 13:18 ` [PATCH 1/2] firmware: cs_dsp: Remove async regmap writes Richard Fitzgerald
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Richard Fitzgerald @ 2025-02-25 13:18 UTC (permalink / raw)
  To: broonie, tiwai; +Cc: linux-sound, linux-kernel, patches

These two patches fix a race condition between driver and amp when issuing
a soft-reset over SPI. The main problem with the race is that the driver
could read the amp status as fully booted, when in fact the amp is about
to reset or is in the process of resetting.

This is mainly contained within the ASoC driver code but a small change is
needed to the HDA driver.

The first patch, to cs_dsp, is to remove async regmap writes so that the
cs35l56 driver can call spi_bus_lock() without breaking firmware download to
other amps on the same SPI bus.

Richard Fitzgerald (2):
  firmware: cs_dsp: Remove async regmap writes
  ASoC: cs35l56: Prevent races when soft-resetting using SPI control

 drivers/firmware/cirrus/cs_dsp.c  | 24 +++-------
 include/sound/cs35l56.h           | 31 ++++++++++++
 sound/pci/hda/cs35l56_hda_spi.c   |  3 ++
 sound/soc/codecs/cs35l56-shared.c | 80 +++++++++++++++++++++++++++++++
 sound/soc/codecs/cs35l56-spi.c    |  3 ++
 5 files changed, 123 insertions(+), 18 deletions(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-02-25 17:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 13:18 [PATCH 0/2] ALSA: cs35l56: Fix for races when soft-resetting on SPI Richard Fitzgerald
2025-02-25 13:18 ` [PATCH 1/2] firmware: cs_dsp: Remove async regmap writes Richard Fitzgerald
2025-02-25 15:15   ` Mark Brown
2025-02-25 16:22     ` Richard Fitzgerald
2025-02-25 16:37       ` Mark Brown
2025-02-25 13:18 ` [PATCH 2/2] ASoC: cs35l56: Prevent races when soft-resetting using SPI control Richard Fitzgerald
2025-02-25 17:04 ` [PATCH 0/2] ALSA: cs35l56: Fix for races when soft-resetting on SPI Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox