Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SDCA: Add comment for function reset polling

Add a comment to better explain the function reset polling rate.

Tested-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tested-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20251120153023.2105663-6-ckeepax@opensource.cirrus.com
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Charles Keepax and committed by
Mark Brown
336beae2 cc58055b

+4
+4
sound/soc/sdca/sdca_fdl.c
··· 51 51 return -EINVAL; 52 52 } 53 53 54 + /* 55 + * Poll up to 16 times but no more than once per ms, these are just 56 + * arbitrarily selected values, so may be fine tuned in future. 57 + */ 54 58 poll_us = umin(function->reset_max_delay >> 4, 1000); 55 59 56 60 ret = regmap_read_poll_timeout(regmap, reg, val, !val, poll_us,