Skip to content

fw_env: cleanup flash_write_buf()

Rafał Miłecki u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fw_env: use "erasesize" variable in writing looptools/env/fw_env.c+1 -10 replies
2/6fw_env: allocate buffer of proper size in flash_write_buf()tools/env/fw_env.c+2 -20 replies
3/6fw_env: add ROUND_UP() helpertools/env/fw_env.c+2 -20 replies
4/6fw_env: unify calculation of "blockstart" in flash_write_buf()tools/env/fw_env.c+1 -31 reply
5/6fw_env: move "erasesize" calculation up in a codetools/env/fw_env.c+10 -100 replies
6/6fw_env: drop unneeded variables from flash_write_buf()tools/env/fw_env.c+6 -151 reply

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchTom Rini
1/6
2/6
3/6
4/6R-b
5/6
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] fw_env: cleanup flash_write_buf()

From: Rafał Miłecki <[email protected]>

I found flash_write_buf() somehow more difficult to follow than needed. Some code turned out to be inconsistent and some not really needed.

There is a set of 6 patches that should be small enough to make them easy to review. I was wondering if I should squash patches 5 and 6 but ended up with sending two smaller diffs.

Those changes shouldn't really change any behaviour (except for smaller mem alloc). Let me know if there are any issues with this!

Rafał Miłecki (6):
fw_env: use "erasesize" variable in writing loop
fw_env: allocate buffer of proper size in flash_write_buf()
fw_env: add ROUND_UP() helper
fw_env: unify calculation of "blockstart" in flash_write_buf()
fw_env: move "erasesize" calculation up in a code
fw_env: drop unneeded variables from flash_write_buf()

 tools/env/fw_env.c | 47 ++++++++++++++++++----------------------------
 1 file changed, 18 insertions(+), 29 deletions(-)
Signature · 1 line
2.51.0