commit | 0b5a70736f59dce25d0f6d71a6dc89a54b680fcd | [log] [tgz] |
---|---|---|
author | Sergii Dmytruk <sergii.dmytruk@3mdeb.com> | Sun Aug 14 16:51:46 2022 +0300 |
committer | Nico Huber <nico.h@gmx.de> | Fri Dec 30 01:16:55 2022 +0100 |
tree | 990c09b00907579493b355284b5a4d43724824ce | |
parent | 29c8b5db5da5c0506aaac26fdfd3c8312638a51b [diff] |
writeprotect.c: skip unnecessary writes * Don't write register because of RO and OTP bits. * Skip the write of RW bits if register state wouldn't change by it. Change-Id: I81d2d3fc0a103ee00ced78838d77fe33a9d3056a Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/66754 Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Original-Reviewed-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71004 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>