mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ASoC: spacemit: fix incorrect error check for sspa clock
@ 2025-11-05 16:03 Goko Mell
  2025-11-05 16:22 ` Troy Mitchell
  2025-11-07 22:45 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Goko Mell @ 2025-11-05 16:03 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai, Yixun Lan
  Cc: linux-sound, linux-riscv, spacemit, linux-kernel, Goko Mell

Fix a wrong IS_ERR() check in spacemit_i2s_probe() where `clk` was used
instead of `i2s->sspa_clk`.

Signed-off-by: Goko Mell <goku.sonxin626@gmail.com>
---
This patch fixes a wrong IS_ERR() check in spacemit_i2s_probe() where
`clk` was used instead of the correct `i2s->sspa_clk`.
---
 sound/soc/spacemit/k1_i2s.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sound/soc/spacemit/k1_i2s.c b/sound/soc/spacemit/k1_i2s.c
index 8af05e1604f518b63cbbbaa66b73cfee8262d87f..1cb99f1abc7cde3370ca643c8b955132d8a1013a 100644
--- a/sound/soc/spacemit/k1_i2s.c
+++ b/sound/soc/spacemit/k1_i2s.c
@@ -414,8 +414,9 @@ static int spacemit_i2s_probe(struct platform_device *pdev)
 		return dev_err_probe(i2s->dev, PTR_ERR(clk), "failed to enable sspa_bus clock\n");
 
 	i2s->sspa_clk = devm_clk_get_enabled(i2s->dev, "sspa");
-	if (IS_ERR(clk))
-		return dev_err_probe(i2s->dev, PTR_ERR(clk), "failed to enable sspa clock\n");
+	if (IS_ERR(i2s->sspa_clk))
+		return dev_err_probe(i2s->dev, PTR_ERR(i2s->sspa_clk),
+				     "failed to enable sspa clock\n");
 
 	i2s->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(i2s->base))

---
base-commit: 84d39fb9d529f27d2f3d295430d1be0abdae7a6d
change-id: 20251105-spacemit-i2s-fix-e63d655ab94c

Best regards,
-- 
Goko Mell <goku.sonxin626@gmail.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: spacemit: fix incorrect error check for sspa clock
  2025-11-05 16:03 [PATCH] ASoC: spacemit: fix incorrect error check for sspa clock Goko Mell
@ 2025-11-05 16:22 ` Troy Mitchell
  2025-11-07 22:45 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Troy Mitchell @ 2025-11-05 16:22 UTC (permalink / raw)
  To: Goko Mell, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Yixun Lan
  Cc: linux-sound, linux-riscv, spacemit, linux-kernel, Troy Mitchell

On Thu, Nov 06, 2025 at 12:03:16AM +0800, Goko Mell wrote:
> Fix a wrong IS_ERR() check in spacemit_i2s_probe() where `clk` was used
> instead of `i2s->sspa_clk`.
> 
> Signed-off-by: Goko Mell <goku.sonxin626@gmail.com>
You lost Fix tag here.

           - Troy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: spacemit: fix incorrect error check for sspa clock
  2025-11-05 16:03 [PATCH] ASoC: spacemit: fix incorrect error check for sspa clock Goko Mell
  2025-11-05 16:22 ` Troy Mitchell
@ 2025-11-07 22:45 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-11-07 22:45 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Yixun Lan, Goko Mell
  Cc: linux-sound, linux-riscv, spacemit, linux-kernel

On Thu, 06 Nov 2025 00:03:16 +0800, Goko Mell wrote:
> Fix a wrong IS_ERR() check in spacemit_i2s_probe() where `clk` was used
> instead of `i2s->sspa_clk`.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: spacemit: fix incorrect error check for sspa clock
      commit: e32c402533cc68abe20fcf3246b9ff53e1f96021

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:[~2025-11-07 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-05 16:03 [PATCH] ASoC: spacemit: fix incorrect error check for sspa clock Goko Mell
2025-11-05 16:22 ` Troy Mitchell
2025-11-07 22:45 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®