All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] env: sf: remove the static env_flash variable
@ 2021-02-24 10:52 Patrick Delaunay
  2021-02-24 10:52 ` [RFC PATCH 1/2] env: sf: add missing spi_flash_free Patrick Delaunay
  2021-02-24 10:52 ` [RFC PATCH 2/2] env: sf: remove the static env_flash variable Patrick Delaunay
  0 siblings, 2 replies; 5+ messages in thread
From: Patrick Delaunay @ 2021-02-24 10:52 UTC (permalink / raw)
  To: u-boot


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(-)

-- 
2.17.1

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

end of thread, other threads:[~2021-04-18 12:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 10:52 [RFC PATCH 0/2] env: sf: remove the static env_flash variable Patrick Delaunay
2021-02-24 10:52 ` [RFC PATCH 1/2] env: sf: add missing spi_flash_free Patrick Delaunay
2021-04-18 12:45   ` Tom Rini
2021-02-24 10:52 ` [RFC PATCH 2/2] env: sf: remove the static env_flash variable Patrick Delaunay
2021-04-18 12:46   ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.