From a67b7963a0f8f671fe3d3db54c803a068b93f2c4 Mon Sep 17 00:00:00 2001 From: Nikolai Artemiev Date: Fri, 3 May 2024 10:48:33 +1000 Subject: [PATCH] flashrom: Change chip unlock error to warning Failing to disable WP before write/erase doesn't necessarily indicate an error and flashrom doesn't treat it as such. Print a warning instead on an error. BUG=b:336220545 BRANCH=none TEST=build Change-Id: I14c3b55e387443909ca1efab2fc1901f87dd66d6 Signed-off-by: Nikolai Artemiev Reviewed-on: https://review.coreboot.org/c/flashrom/+/82175 Reviewed-by: Hsuan-ting Chen Reviewed-by: Brian Norris Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk --- flashrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashrom.c b/flashrom.c index 6b15ee5b7..a36530304 100644 --- a/flashrom.c +++ b/flashrom.c @@ -2092,7 +2092,7 @@ static int unlock_flash_wp(struct flashctx *const flash, warn_out: if (ret) - msg_cerr("Failed to unlock flash status reg with wp support.\n"); + msg_cwarn("Failed to unlock flash status reg with wp support.\n"); return ret; }