1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-26 22:52:34 +02:00

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 <nartemiev@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/82175
Reviewed-by: Hsuan-ting Chen <roccochen@google.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:
Nikolai Artemiev 2024-05-03 10:48:33 +10:00 committed by Anastasia Klimchuk
parent b2ad4722e9
commit a67b7963a0

View File

@ -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;
}