* [PATCH] ASoC: sun4i-spdif: Add missing check for devm_regmap_init_mmio
@ 2026-01-27 3:40 Chen Ni
2026-01-27 15:45 ` Markus Elfring
2026-01-28 0:37 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Chen Ni @ 2026-01-27 3:40 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai, wens, jernej.skrabec, samuel,
ckeepax
Cc: linux-sound, linux-arm-kernel, linux-sunxi, linux-kernel, Chen Ni
Add check for the return value of devm_regmap_init_mmio() and return the
error if it fails in order to catch the error.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
sound/soc/sunxi/sun4i-spdif.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdif.c
index 1e755a716c63..65de03ca3ad2 100644
--- a/sound/soc/sunxi/sun4i-spdif.c
+++ b/sound/soc/sunxi/sun4i-spdif.c
@@ -684,6 +684,10 @@ static int sun4i_spdif_probe(struct platform_device *pdev)
host->regmap = devm_regmap_init_mmio(&pdev->dev, base,
&sun4i_spdif_regmap_config);
+ if (IS_ERR(host->regmap)) {
+ dev_err(&pdev->dev, "failed to initialise regmap.\n");
+ return PTR_ERR(host->regmap);
+ }
/* Clocks */
host->apb_clk = devm_clk_get(&pdev->dev, "apb");
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: sun4i-spdif: Add missing check for devm_regmap_init_mmio
2026-01-27 3:40 [PATCH] ASoC: sun4i-spdif: Add missing check for devm_regmap_init_mmio Chen Ni
@ 2026-01-27 15:45 ` Markus Elfring
2026-01-28 0:37 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Markus Elfring @ 2026-01-27 15:45 UTC (permalink / raw)
To: Chen Ni, linux-sunxi, linux-arm-kernel, linux-sound
Cc: LKML, Charles Keepax, Chen-Yu Tsai, Jaroslav Kysela,
Jernej Skrabec, Liam Girdwood, Mark Brown, Samuel Holland,
Takashi Iwai
> Add check for the return value of devm_regmap_init_mmio() and return the
> error if it fails in order to catch the error.
How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?
Regards,
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: sun4i-spdif: Add missing check for devm_regmap_init_mmio
2026-01-27 3:40 [PATCH] ASoC: sun4i-spdif: Add missing check for devm_regmap_init_mmio Chen Ni
2026-01-27 15:45 ` Markus Elfring
@ 2026-01-28 0:37 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-01-28 0:37 UTC (permalink / raw)
To: lgirdwood, perex, tiwai, wens, jernej.skrabec, samuel, ckeepax,
Chen Ni
Cc: linux-sound, linux-arm-kernel, linux-sunxi, linux-kernel
On Tue, 27 Jan 2026 11:40:25 +0800, Chen Ni wrote:
> Add check for the return value of devm_regmap_init_mmio() and return the
> error if it fails in order to catch the error.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: sun4i-spdif: Add missing check for devm_regmap_init_mmio
commit: 8ef73c0fbd1e15ead401a74e7114d8d4614a74cf
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-28 0:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-27 3:40 [PATCH] ASoC: sun4i-spdif: Add missing check for devm_regmap_init_mmio Chen Ni
2026-01-27 15:45 ` Markus Elfring
2026-01-28 0:37 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox