Skip to content

media: rc: ir-spi: allocate buffer dynamically

Cosmin Tanislav linux-media lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 1 replyIn review
  2. v42 patches 7 repliesSuperseded
  3. v31 patch 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch3 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v5 from the cover letter

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

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3media: rc: ir-spi: allocate buffer dynamicallydrivers/media/rc/ir-spi.c+20 -130 replies
2/3media: rc: ir-spi: constrain carrier frequencydrivers/media/rc/ir-spi.c+5 -10 replies
3/3media: rc: ir-spi: avoid overflow in multiplicationdrivers/media/rc/ir-spi.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/3] media: rc: ir-spi: allocate buffer dynamically

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(-)
Signature · 1 line
2.49.0