ASoC: cs35l56: In secure mode skip SHUTDOWN and RESET around fw download
authorSimon Trimmer <simont@opensource.cirrus.com>
Thu, 18 May 2023 15:02:50 +0000 (16:02 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 19 May 2023 02:32:13 +0000 (11:32 +0900)
commit1a8edfcffa2803afc0ef3a6a48819230cdbda2c9
treea30db4d0e94b3b2df425c4b7c9863f2a7c62e37e
parentc9001a2754528fa5da20e8674b3afbd8c134cc91
ASoC: cs35l56: In secure mode skip SHUTDOWN and RESET around fw download

If the device is in secure mode it's unnecessary to send a SHUTDOWN and
SYSTEM_RESET around the firmware download. It could only be patching
insecure tunings. A tuning patch doesn't need a SHUTDOWN and only needs
a REINIT afterwards. This will reduce the overhead of exiting system
suspend in secure mode.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/Message-Id:
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/cs35l56.h
sound/soc/codecs/cs35l56.c