Skip to content

sf: Check protection before writing/erasing flash

Jan Kiszka u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 2 repliesIn review
  2. v52 patches 0 repliesSuperseded

Changes in v6 from the cover letter

- fixed embarrassingly inverted logic in unlock check (and properly tested it this time)

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mtd: spi: Convert is_locked callback to is_unlockeddrivers/mtd/spi/spi-nor-core.c include/linux/mtd/spi-nor.h+16 -160 replies
2/2sf: Query write-protection status before operating the flashcmd/sf.c+12 -00 replies

Reviews trailers per patch

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

Read the v6 thread

Cover letter [PATCH v6 0/2] sf: Check protection before writing/erasing flash

Changes in v6:
- fixed embarrassingly inverted logic in unlock check (and properly tested it this time)

Changes in v5:
- adjust unused is_locked callback to our is_unlocked needs
- use this callback in sf command instead

Jan

Jan Kiszka (2):
mtd: spi: Convert is_locked callback to is_unlocked
sf: Query write-protection status before operating the flash

 cmd/sf.c                       | 12 ++++++++++++
 drivers/mtd/spi/spi-nor-core.c | 26 +++++++++++++-------------
 include/linux/mtd/spi-nor.h    |  6 +++---
 3 files changed, 28 insertions(+), 16 deletions(-)
Signature · 1 line
2.34.1