Skip to content

Serial Flash: call spi_flash_free more coherently

Valentin Longchamp u-boot 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v2 posting 2/20 of 3 patches 0 repliesSuperseded
  3. v2 posting 1/23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v10 of 3 patches0 repliesSuperseded

Changes in v3 from the cover letter

- Rebased on v2015.10
- Rebased on v2015.10

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cmd_sf: add 'release' commandcommon/cmd_sf.c+11 -01 reply
1/3cmd_sf: add 'release' command+0 -01 reply
1/3cmd_sf: add 'release' command+0 -01 reply
1/3cmd_sf: add 'release' command+0 -01 reply
1/3cmd_sf: add 'release' command+0 -00 replies
2/3env_sf: generalize call to spi_flash_free after accessescommon/env_sf.c+14 -140 replies
3/3km_arm: call 'sf release' in the newenv and update scriptsinclude/configs/km/km_arm.h+4 -20 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/3] Serial Flash: call spi_flash_free more coherently

Some board require spi_flash_free to be called after all the accesses, in order, for instance, to restore the pin multiplexing configuration in the case where the SPI pins are multiplexed.

This patch series tries to enhance this. Patch 1 adds spi_flash_free calls to env_sf so that the SPI interface is always "cleaned up" after the env read/writes. Patch 2 adds a 'sf release' command that implicitly calls spi_flash_free and is thus the pendant of 'sf probe'. Patch 3 uses the 'sf command' for the km_arm board scripts.

The whole series had already been sent more than 2 years ago [1] but it was rejected without any feedback. So I send this rebased v2 so that it finally gets reviewed and merged. This was not successfull either, again without any given feedback. So this is a 3rd attempt to get some feedback to get this mailined.

[1] http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/169723

Changes in v3:
- Rebased on v2015.10
- Rebased on v2015.10

Changes in v2:
- Rebased on v2014.10

Valentin Longchamp (3):
cmd_sf: add 'release' command
env_sf: generalize call to spi_flash_free after accesses
km_arm: call 'sf release' in the newenv and update scripts

 common/cmd_sf.c             | 11 +++++++++++
 common/env_sf.c             | 28 ++++++++++++++--------------
 include/configs/km/km_arm.h |  6 ++++--
 3 files changed, 29 insertions(+), 16 deletions(-)
Signature · 1 line
1.8.3.1