Re: [PATCH] ASoC: tas2781: Add delay before block checksum retry to prevent deadlock

From: Mark Brown

Date: Fri Aug 14 2026 - 14:43:17 EST


On Sat, Aug 15, 2026 at 02:19:26AM +0800, 李则良 wrote:
> +++ b/sound/soc/codecs/tas2781-fmwlib.c
> @@ -1765,9 +1765,16 @@ static int tasdev_block_chksum(struct
> tasdevice_priv *tas_priv,
> ret = -EAGAIN;
> block->nr_retry--;
>
> - if (block->nr_retry <= 0)
> + if (block->nr_retry <= 0) {
> set_err_prg_cfg(block->type,
> &tas_priv->tasdevice[chn]);
> +
> + } else {
> + /* Give the chip and I2C bus time to stabilize before
> + * next re-transmission attempt.
> + */
> + usleep_range(2000, 2500);
> + }
> } else
> tas_priv->tasdevice[chn].err_code &= ~ERROR_PRAM_CRCCHK;

Your mail software has mangled this patch so it's unusable - at least
all the tabs have been replaced by spaces. You might want to look at b4
to send the patches, especially it's web submission endpoint which
avoids having to configure mail:

https://b4.docs.kernel.org/en/latest/contributor/overview.html

Attachment: signature.asc
Description: PGP signature