public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] fw_env: two minor code cleanups
@ 2022-01-10 20:19 Rafał Miłecki
  2022-01-10 20:19 ` [PATCH 1/2] fw_env: make flash_io() take buffer as an argument Rafał Miłecki
  2022-01-10 20:19 ` [PATCH 2/2] fw_env: simplify logic & code paths in the fw_env_open() Rafał Miłecki
  0 siblings, 2 replies; 4+ messages in thread
From: Rafał Miłecki @ 2022-01-10 20:19 UTC (permalink / raw)
  To: u-boot; +Cc: Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

Hi,

I'm a long time OpenWrt developer and just recently I started working
with some devices using U-Boot.

I was trying to understand how environment variables are read in user
space and I had some problems understanding fw_env_open() logic. I
eventually got it but I thought I may help further developers by
simpliifying its code a bit.

I hope you may find those patches useful and review / apply them.

Rafał Miłecki (2):
  fw_env: make flash_io() take buffer as an argument
  fw_env: simplify logic & code paths in the fw_env_open()

 tools/env/fw_env.c | 104 +++++++++++++++++++--------------------------
 1 file changed, 44 insertions(+), 60 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2022-01-11 14:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-10 20:19 [PATCH 0/2] fw_env: two minor code cleanups Rafał Miłecki
2022-01-10 20:19 ` [PATCH 1/2] fw_env: make flash_io() take buffer as an argument Rafał Miłecki
2022-01-11 14:10   ` Rafał Miłecki
2022-01-10 20:19 ` [PATCH 2/2] fw_env: simplify logic & code paths in the fw_env_open() Rafał Miłecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox