[PATCH 0/6] fw_env: cleanup flash_write_buf()
Tom Rini
trini at konsulko.com
Mon Mar 9 16:10:44 CET 2026
On Sat, 21 Feb 2026 11:00:05 +0100, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal at milecki.pl>
>
> 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.
>
> [...]
Applied to u-boot/next, thanks!
[1/6] fw_env: use "erasesize" variable in writing loop
commit: 1197954d5896f431716a61b4242c98c336753948
[2/6] fw_env: allocate buffer of proper size in flash_write_buf()
commit: d80d88cb87d7f291c7abc9168d69f30f994b852f
[3/6] fw_env: add ROUND_UP() helper
commit: 2f28f4116a173891f5c88e1ae3de374241bb1121
[4/6] fw_env: unify calculation of "blockstart" in flash_write_buf()
commit: 1d175b2108d7e0aa74a182ac1ebde58a4f129371
[5/6] fw_env: move "erasesize" calculation up in a code
commit: ffd8024efcb9868b654b319b29949347e6fe92ef
[6/6] fw_env: drop unneeded variables from flash_write_buf()
commit: 667fa1a1cd52abe8f96ce903d58322b7b126d9ea
--
Tom
More information about the U-Boot
mailing list