All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] media: rc: ir-spi: allocate buffer dynamically
@ 2025-06-13 11:21 Cosmin Tanislav
  2025-06-13 11:21 ` [PATCH v5 1/3] " Cosmin Tanislav
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Cosmin Tanislav @ 2025-06-13 11:21 UTC (permalink / raw)
  Cc: Sean Young, Mauro Carvalho Chehab, linux-media, linux-kernel,
	Cosmin Tanislav

Replace the static transmit buffer with a dynamically allocated one,
removing the limit imposed on the number of pulses to transmit.

Add a check to constrain the carrier frequency inside
ir_spi_set_tx_carrier().

Switch to u64 arithmetic to ir_spi_tx() when calculating the number
of pulses to transmit.

V5:
 * add separate patch to solve overflow issues in ir_spi_tx()
 * avoid overflow in carrier frequency constraint

V4:
 * add separate patch to constrain the carrier frequency

V3:
 * move the allocation to be done per-TX operation

V2:
 * use devm_krealloc_array

Cosmin Tanislav (3):
  media: rc: ir-spi: allocate buffer dynamically
  media: rc: ir-spi: constrain carrier frequency
  media: rc: ir-spi: avoid overflow in multiplication

 drivers/media/rc/ir-spi.c | 40 +++++++++++++++++++++++++--------------
 1 file changed, 26 insertions(+), 14 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-06-20 16:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-13 11:21 [PATCH v5 0/3] media: rc: ir-spi: allocate buffer dynamically Cosmin Tanislav
2025-06-13 11:21 ` [PATCH v5 1/3] " Cosmin Tanislav
2025-06-13 11:21 ` [PATCH v5 2/3] media: rc: ir-spi: constrain carrier frequency Cosmin Tanislav
2025-06-13 11:21 ` [PATCH v5 3/3] media: rc: ir-spi: avoid overflow in multiplication Cosmin Tanislav
2025-06-20 16:45 ` [PATCH v5 0/3] media: rc: ir-spi: allocate buffer dynamically Sean Young

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.