Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] sound:aw88399:Correct error handling in aw_dev_get_dsp_status function
@ 2024-10-08  2:59 Zhu Jun
  2024-10-08  6:32 ` [PATCH] ASoC: codecs: aw88399: Correct " Markus Elfring
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Zhu Jun @ 2024-10-08  2:59 UTC (permalink / raw)
  To: perex
  Cc: tiwai, wangweidong.a, andriy.shevchenko, heiko,
	kuninori.morimoto.gx, nathan, u.kleine-koenig, zhujun2,
	linux-kernel, linux-sound, broonie, lgirdwood

Added proper error handling for register value check that
return -EPERM when register value does not meet expected condition

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
 sound/soc/codecs/aw88399.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/aw88399.c b/sound/soc/codecs/aw88399.c
index 8dc2b8aa6832..bba59885242d 100644
--- a/sound/soc/codecs/aw88399.c
+++ b/sound/soc/codecs/aw88399.c
@@ -656,7 +656,7 @@ static int aw_dev_get_dsp_status(struct aw_device *aw_dev)
 	if (ret)
 		return ret;
 	if (!(reg_val & (~AW88399_WDT_CNT_MASK)))
-		ret = -EPERM;
+		return -EPERM;
 
 	return 0;
 }
-- 
2.17.1




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

* Re: [PATCH] ASoC: codecs: aw88399: Correct error handling in aw_dev_get_dsp_status function
  2024-10-08  2:59 [PATCH] sound:aw88399:Correct error handling in aw_dev_get_dsp_status function Zhu Jun
@ 2024-10-08  6:32 ` Markus Elfring
  2024-10-08  9:49   ` Mark Brown
  2024-10-08  9:48 ` [PATCH] sound:aw88399:Correct " Mark Brown
  2024-10-10 11:14 ` Mark Brown
  2 siblings, 1 reply; 5+ messages in thread
From: Markus Elfring @ 2024-10-08  6:32 UTC (permalink / raw)
  To: Zhu Jun, linux-sound, Jaroslav Kysela, Takashi Iwai
  Cc: LKML, Andy Shevchenko, Heiko Stübner, Kuninori Morimoto,
	Liam Girdwood, Mark Brown, Nathan Chancellor,
	Uwe Kleine-König, Weidong Wang

* Please check the subsystem specification once more.

* How do you think about to replace the word “function” (in the summary phrase)
  by parentheses?


> Added proper error handling for register value check that

  Add?


> return -EPERM when register value does not meet expected condition

* It is usually preferred to end a sentence with a dot, isn't it?

* Would you like to add any tags (like “Fixes” and “Cc”) accordingly?


Regards,
Markus

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

* Re: [PATCH] sound:aw88399:Correct error handling in aw_dev_get_dsp_status function
  2024-10-08  2:59 [PATCH] sound:aw88399:Correct error handling in aw_dev_get_dsp_status function Zhu Jun
  2024-10-08  6:32 ` [PATCH] ASoC: codecs: aw88399: Correct " Markus Elfring
@ 2024-10-08  9:48 ` Mark Brown
  2024-10-10 11:14 ` Mark Brown
  2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2024-10-08  9:48 UTC (permalink / raw)
  To: Zhu Jun
  Cc: perex, tiwai, wangweidong.a, andriy.shevchenko, heiko,
	kuninori.morimoto.gx, nathan, u.kleine-koenig, linux-kernel,
	linux-sound, lgirdwood

[-- Attachment #1: Type: text/plain, Size: 517 bytes --]

On Mon, Oct 07, 2024 at 07:59:23PM -0700, Zhu Jun wrote:
> Added proper error handling for register value check that
> return -EPERM when register value does not meet expected condition

Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH] ASoC: codecs: aw88399: Correct error handling in aw_dev_get_dsp_status function
  2024-10-08  6:32 ` [PATCH] ASoC: codecs: aw88399: Correct " Markus Elfring
@ 2024-10-08  9:49   ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2024-10-08  9:49 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Zhu Jun, linux-sound, Jaroslav Kysela, Takashi Iwai, LKML,
	Andy Shevchenko, Heiko Stübner, Kuninori Morimoto,
	Liam Girdwood, Nathan Chancellor, Uwe Kleine-König,
	Weidong Wang

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

On Tue, Oct 08, 2024 at 08:32:32AM +0200, Markus Elfring wrote:
> * Please check the subsystem specification once more.
> 
> * How do you think about to replace the word “function” (in the summary phrase)
>   by parentheses?

Feel free to ignore Markus, he has a long history of sending
unhelpful review comments and continues to ignore repeated requests
to stop.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH] sound:aw88399:Correct error handling in aw_dev_get_dsp_status function
  2024-10-08  2:59 [PATCH] sound:aw88399:Correct error handling in aw_dev_get_dsp_status function Zhu Jun
  2024-10-08  6:32 ` [PATCH] ASoC: codecs: aw88399: Correct " Markus Elfring
  2024-10-08  9:48 ` [PATCH] sound:aw88399:Correct " Mark Brown
@ 2024-10-10 11:14 ` Mark Brown
  2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2024-10-10 11:14 UTC (permalink / raw)
  To: perex, Zhu Jun
  Cc: tiwai, wangweidong.a, andriy.shevchenko, heiko,
	kuninori.morimoto.gx, nathan, u.kleine-koenig, linux-kernel,
	linux-sound, lgirdwood

On Mon, 07 Oct 2024 19:59:23 -0700, Zhu Jun wrote:
> Added proper error handling for register value check that
> return -EPERM when register value does not meet expected condition
> 
> 

Applied to

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

Thanks!

[1/1] sound:aw88399:Correct error handling in aw_dev_get_dsp_status function
      commit: 53189ae7aa1eeabd937c7a4d1f41e40513597d2c

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] 5+ messages in thread

end of thread, other threads:[~2024-10-10 11:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-08  2:59 [PATCH] sound:aw88399:Correct error handling in aw_dev_get_dsp_status function Zhu Jun
2024-10-08  6:32 ` [PATCH] ASoC: codecs: aw88399: Correct " Markus Elfring
2024-10-08  9:49   ` Mark Brown
2024-10-08  9:48 ` [PATCH] sound:aw88399:Correct " Mark Brown
2024-10-10 11:14 ` Mark Brown

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