Skip to content

RFC env: sf: remove the static env_flash variable

Patrick Delaunay u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2env: sf: add missing spi_flash_freeenv/sf.c+9 -01 reply
2/2env: sf: remove the static env_flash variableenv/sf.c+18 -231 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] env: sf: remove the static env_flash variable

Proposal to cleanup the SPI device support in env/sf.c, after the question of mail [1].

Release the SPI flash after each ENV request, so U-Boot can't have conflict of other SPI user.

This serie can be applied on top on previous serie [2].

Drawback: possible performance issue as SPI device is probed/release for each ENV access when several ENV opts are called.

[1] Mail "Question about env_flash variable in env/sf.c" Dec 17, 2020; 6:33pm
http://u-boot.10912.n7.nabble.com/Question-about-env-flash-variable-in-env-sf-c-tt435311.html

[2] env: sf: add support of command env erase
http://patchwork.ozlabs.org/project/uboot/list/?series=228696&state=*

Patrick

Patrick Delaunay (2):
env: sf: add missing spi_flash_free
env: sf: remove the static env_flash variable

 env/sf.c | 44 ++++++++++++++++++++++++--------------------
 1 file changed, 24 insertions(+), 20 deletions(-)
Signature · 1 line
2.17.1