The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v3 0/2] staging: iio: ad7816: Fix DMA from stack and race conditions
@ 2026-08-03 13:43 Abdelnasser Hussein
  2026-08-03 13:43 ` [PATCH v3 1/2] staging: greybus: audio_codec: fix sscanf return value check Abdelnasser Hussein
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-08-03 13:43 UTC (permalink / raw)
  To: jic23
  Cc: nuno.sa, Michael.Hennerich, gregkh, linux-iio, linux-kernel,
	Abdelnasser Hussein

This patch series addresses two issues in the ad7816 driver:
1. Adds a mutex to prevent race conditions during SPI reads.
2. Moves the DMA buffer from the stack to the device structure and
   aligns it properly using IIO_DMA_MINALIGN.

Changes in v3:
- Fixed a formatting issue in the v2 cover letter that caused it to be sent empty. No code changes.

Changes in v2:
- Added a mutex to protect the SPI read sequence.
- Used __aligned(IIO_DMA_MINALIGN) for the DMA buffer.
- Corrected the sizeof() argument in spi_read().
- Added the missing Fixes: tag.

Abdelnasser Hussein (2):
  staging: iio: ad7816: serialize ad7816_spi_read() with a mutex
  staging: iio: ad7816: avoid DMA from stack in spi_read

 drivers/staging/iio/adc/ad7816.c | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH v3 0/2] staging: greybus: audio: cleanups for gbaudio_module_update
@ 2026-06-14 15:43 Abdelnasser Hussein
  2026-06-14 15:43 ` [PATCH v3 1/2] staging: greybus: audio_codec: fix sscanf return value check Abdelnasser Hussein
  0 siblings, 1 reply; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-06-14 15:43 UTC (permalink / raw)
  To: gregkh
  Cc: vaibhav.sr, mgreer, johan, elder, greybus-dev, linux-staging,
	linux-kernel, Abdelnasser Hussein

This patch series addresses two separate issues in gbaudio_module_update()
that were previously combined in v2:

1. Fixes an improper check of the sscanf() return value (smatch warning).
2. Removes a redundant else-if check that could lead to an uninitialized
   variable warning for 'ret' (reported by kernel test robot).

Changes in v3:
- Split the changes into a 2-patch series based on feedback from
Greg Kroah-Hartman.
- Assigned correct Reported-by and Closes tags to both patches. 



abdelnasser hussein (2):
  staging: greybus: audio_codec: fix sscanf return value check
  staging: greybus: audio_codec: remove redundant else-if check

 drivers/staging/greybus/audio_codec.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-08-05 12:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-03 13:43 [PATCH v3 0/2] staging: iio: ad7816: Fix DMA from stack and race conditions Abdelnasser Hussein
2026-08-03 13:43 ` [PATCH v3 1/2] staging: greybus: audio_codec: fix sscanf return value check Abdelnasser Hussein
2026-08-03 15:29   ` Greg KH
2026-08-03 13:43 ` [PATCH v3 1/2] staging: iio: ad7816: serialize ad7816_spi_read() with a mutex Abdelnasser Hussein
2026-08-04 23:59   ` Jonathan Cameron
2026-08-05 12:25     ` nasser
2026-08-03 13:43 ` [PATCH v3 2/2] staging: greybus: audio_codec: remove redundant else-if check Abdelnasser Hussein
2026-08-03 13:43 ` [PATCH v3 2/2] staging: iio: ad7816: avoid DMA from stack in spi_read Abdelnasser Hussein
2026-08-05  0:05   ` Jonathan Cameron
2026-08-05 12:21     ` nasser
  -- strict thread matches above, loose matches on Subject: below --
2026-06-14 15:43 [PATCH v3 0/2] staging: greybus: audio: cleanups for gbaudio_module_update Abdelnasser Hussein
2026-06-14 15:43 ` [PATCH v3 1/2] staging: greybus: audio_codec: fix sscanf return value check Abdelnasser Hussein
2026-06-15  7:35   ` Dan Carpenter

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