From a018234400faf1b50b0628a7fa7ea3da26beacbb Mon Sep 17 00:00:00 2001 From: Nikolai Artemiev Date: Fri, 9 Dec 2022 15:03:35 +1100 Subject: libflashrom: Add flags to skip unreadable and unwritable regions Add flags to allow libflashrom users to configure how operations that include unreadable or unwritable regions should be behave. If the flags are set to true, a read/write operation will just skip the inaccessible region and will still be executed in other regions. If the flags are set to false, the inaccessible region will cause the entire operation to fail. BUG=b:260440773 BRANCH=none TEST=builds Change-Id: I9b96fb04b863625d2c9f9a00b97c35b3ddb0871b CoAuthored-by: Edward O'Callaghan Signed-off-by: Edward O'Callaghan Signed-off-by: Nikolai Artemiev Reviewed-on: https://review.coreboot.org/c/flashrom/+/70128 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Angel Pons --- include/libflashrom.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/libflashrom.h') diff --git a/include/libflashrom.h b/include/libflashrom.h index bac76c2c..490ef03b 100644 --- a/include/libflashrom.h +++ b/include/libflashrom.h @@ -251,6 +251,8 @@ enum flashrom_flag { FLASHROM_FLAG_FORCE_BOARDMISMATCH, FLASHROM_FLAG_VERIFY_AFTER_WRITE, FLASHROM_FLAG_VERIFY_WHOLE_CHIP, + FLASHROM_FLAG_SKIP_UNREADABLE_REGIONS, + FLASHROM_FLAG_SKIP_UNWRITABLE_REGIONS, }; /** -- cgit v1.2.3