[Skiboot] [PATCH 0/2] Add a dt property for flash erase

William A. Kennington III wak at google.com
Sat Apr 8 09:11:45 AEST 2017


These patches refactor blocklevel_get_info to make it easier
to add info fields in the future. Then, adds a field to the blocklevel
info to determine whether or not the flash device needs to have blocks
erased before writing. This is useful for the mbox-flash device which
currently doesn't support handling erases like traditional flash. This
new property signals userspace utilities to treat the mtd flash devices
differently than traditional flash.

William A. Kennington III (2):
  blocklevel_info: Refactor the passing of output data
  flash: Add dt entries for flash that doesn't need erase

 core/flash.c                           | 31 +++++++++++++-----------
 external/common/arch_flash_arm.c       |  6 ++---
 external/common/arch_flash_common.c    |  5 ++--
 external/gard/gard.c                   | 10 ++++----
 external/opal-prd/pnor.c               | 12 +++++-----
 external/opal-prd/pnor.h               |  3 +--
 external/opal-prd/test/test_pnor_ops.c |  7 ++++--
 external/pflash/pflash.c               | 19 +++++++--------
 libflash/blocklevel.c                  | 35 +++++++++++++--------------
 libflash/blocklevel.h                  | 14 +++++++----
 libflash/file.c                        | 43 ++++++++++++++--------------------
 libflash/libffs.c                      |  8 +++----
 libflash/libflash.c                    | 15 ++++++------
 libflash/mbox-flash.c                  | 23 +++++++-----------
 platforms/mambo/mambo.c                | 15 ++++--------
 15 files changed, 118 insertions(+), 128 deletions(-)

-- 
2.12.2



More information about the Skiboot mailing list