Skip to content

IHEX bug fix and some improvements

Andrey Smirnov lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ihex: Share code between ihex_validate_fw() and ihex_next_binrec()include/linux/ihex.h+13 -80 replies
2/5ihex: Check if zero-length record is at the end of the blobinclude/linux/ihex.h+1 -10 replies
3/5ihex: Simplify next record offset calculationinclude/linux/ihex.h+7 -30 replies
4/5tools/firmware/ihex2fw: Simplify next record offset calculationtools/firmware/ihex2fw.c+10 -10 replies
5/5tools/firmware/ihex2fw: Replace explicit alignment with ALIGNtools/firmware/ihex2fw.c+4 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] IHEX bug fix and some improvements

Everyone:

This series is a big-fix to a problem I encountered while using code in <linux/ihex.h> bundled with a number of small improvmements. The bug fix is in commit:

[PATCH 2/5] ihex: Check if zero-length record is at the end of the

Small improvmentes are in the rest and all of them are purely optional. Hopefully each commit is self-explanatory.

Feedback is welcome!

Thanks,
Andrey Smirnov

NOTE: This series is expected to be applied on top of [fimrware-patch]

[firmware-patch] lkml.kernel.org/r/[email protected]

Andrey Smirnov (5):
ihex: Share code between ihex_validate_fw() and ihex_next_binrec()
ihex: Check if zero-length record is at the end of the blob
ihex: Simplify next record offset calculation tools/firmware/ihex2fw: Simplify next record offset calculation tools/firmware/ihex2fw: Replace explicit alignment with ALIGN

 include/linux/ihex.h     | 29 +++++++++++++++++++----------
 tools/firmware/ihex2fw.c | 17 ++++++++++++++---
 2 files changed, 33 insertions(+), 13 deletions(-)
Signature · 1 line
2.19.1