ASoC: tegra: Use non-atomic timeout for ADX status register
Subsystems (3)
PATCH 1/1 ASoC: tegra: Use non-atomic timeout for ADX status register
From: Ritu Chaudhary <[email protected]>
ADX startup() callback uses atomic poll timeout on ADX status register.
This is unnecessary because:
- The startup() callback itself is non-atomic.
- The subsequent timeout call in the same function already uses a non-atomic version.
Using atomic version can hog CPU when it is not really needed, so replace it with non-atomic version.
--- sound/soc/tegra/tegra210_adx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/tegra/tegra210_adx.c +3 -3
@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -// SPDX-FileCopyrightText: Copyright (c) 2021-2024 NVIDIA CORPORATION & AFFILIATES. +// SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. // All rights reserved. // // tegra210_adx.c - Tegra210 ADX driver
@@ -57,8 +57,8 @@ static int tegra210_adx_startup(struct snd_pcm_substream *substream,int err;/* Ensure if ADX status is disabled */ - err =regmap_read_poll_timeout_atomic (adx->regmap,TEGRA210_ADX_STATUS , - val, !(val &0x1 ),10 ,10000 ); + err =regmap_read_poll_timeout (adx->regmap,TEGRA210_ADX_STATUS , + val, !(val &0x1 ),10 ,10000 );if (err <0 ) {dev_err (dai->dev,"failed to stop ADX, err = %d\n" , err);return err;
Signature · 1 line
2.17.1
Mark Brown
maintainerQuoted 9 lines · Sheetal .
ADX
startup()callback uses atomic poll timeout on ADX status register.This is unnecessary because:
- The
startup()callback itself is non-atomic.
- The subsequent timeout call in the same function already uses a non-atomic version.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: tegra: Use non-atomic timeout for ADX status register
commit: f1d742c35b659fb0122da0a8ff09ad9309cb29d8
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark