OSDN Git Service

ASoC: cs35l56: Don't overwrite a patched firmware
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 15 Aug 2023 12:48:26 +0000 (13:48 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 15 Aug 2023 12:56:47 +0000 (13:56 +0100)
commit67bd793ba5e0984ecb7ee4407c2f79d159e305ff
tree854669dd57f103da7889d73861f97dc459e523a7
parent62ddad4238a0250aa9cedade127c39aac9d26d45
ASoC: cs35l56: Don't overwrite a patched firmware

Only attempt to download wmfw/bin files to a non-secured part if
it reports FIRMWARE_MISSING. If FIRMWARE_MISSING is false the
firmware has already been patched and overwriting the patch could
corrupt the running firmware.

For a secured part the wmfw/bin can be downloaded even if
FIRMWARE_MISSING is false, because they will only patch tunings.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230815124826.5447-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c