From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: broonie@kernel.org
Cc: lgirdwood@gmail.com, pierre-louis.bossart@linux.dev,
yung-chuan.liao@linux.intel.com, linux-sound@vger.kernel.org,
patches@opensource.cirrus.com
Subject: [PATCH 1/4] ASoC: SDCA: Add default value for mipi-sdca-function-reset-max-delay
Date: Mon, 23 Feb 2026 09:54:22 +0000 [thread overview]
Message-ID: <20260223095425.3905703-2-ckeepax@opensource.cirrus.com> (raw)
In-Reply-To: <20260223095425.3905703-1-ckeepax@opensource.cirrus.com>
Add a default value for the function reset timeout since version 1.0
of the SDCA specification doesn't actually include this property, it
was added later.
Fixes: 7b6be935e7ef ("ASoC: SDCA: Parse Function Reset max delay")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
---
sound/soc/sdca/sdca_fdl.c | 5 -----
sound/soc/sdca/sdca_functions.c | 6 +++++-
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/sound/soc/sdca/sdca_fdl.c b/sound/soc/sdca/sdca_fdl.c
index 07892bc3a44e6..994821a6df617 100644
--- a/sound/soc/sdca/sdca_fdl.c
+++ b/sound/soc/sdca/sdca_fdl.c
@@ -46,11 +46,6 @@ int sdca_reset_function(struct device *dev, struct sdca_function_data *function,
if (ret) // Allowed for function reset to not be implemented
return 0;
- if (!function->reset_max_delay) {
- dev_err(dev, "No reset delay specified in DisCo\n");
- return -EINVAL;
- }
-
/*
* Poll up to 16 times but no more than once per ms, these are just
* arbitrarily selected values, so may be fine tuned in future.
diff --git a/sound/soc/sdca/sdca_functions.c b/sound/soc/sdca/sdca_functions.c
index 95b67bb904c31..a0aed95c76345 100644
--- a/sound/soc/sdca/sdca_functions.c
+++ b/sound/soc/sdca/sdca_functions.c
@@ -2167,8 +2167,12 @@ int sdca_parse_function(struct device *dev, struct sdw_slave *sdw,
ret = fwnode_property_read_u32(function_desc->node,
"mipi-sdca-function-reset-max-delay", &tmp);
- if (!ret)
+ if (ret || tmp == 0) {
+ dev_dbg(dev, "reset delay missing, defaulting to 100mS\n");
+ function->reset_max_delay = 100000;
+ } else {
function->reset_max_delay = tmp;
+ }
dev_dbg(dev, "%pfwP: name %s busy delay %dus reset delay %dus\n",
function->desc->node, function->desc->name,
--
2.47.3
next prev parent reply other threads:[~2026-02-23 9:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 9:54 [PATCH 0/4] SDCA Improvements Charles Keepax
2026-02-23 9:54 ` Charles Keepax [this message]
2026-02-23 9:54 ` [PATCH 2/4] ASoC: SDCA: Update counting of SU/GE DAPM routes Charles Keepax
2026-02-23 9:54 ` [PATCH 3/4] ASoC: SDCA: Improve mapping of Q7.8 SDCA volumes Charles Keepax
2026-02-23 10:12 ` Richard Fitzgerald
2026-02-23 9:54 ` [PATCH 4/4] ASoC: SDCA: Pull the Q7.8 volume helpers out of soc-ops Charles Keepax
2026-02-23 11:43 ` Richard Fitzgerald
2026-02-24 13:54 ` Richard Fitzgerald
2026-02-24 13:55 ` Richard Fitzgerald
2026-02-25 9:25 ` Charles Keepax
2026-02-24 10:58 ` [PATCH 0/4] SDCA Improvements Pierre-Louis Bossart
2026-02-27 6:37 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260223095425.3905703-2-ckeepax@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=pierre-louis.bossart@linux.dev \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox