Nikolai Artemiev uploaded patch set #9 to this change.

View Change

flashrom.c: implement chip restore callback registration

Allows drivers to register a callback function to reset the
chip state once programming has finished. This is used by
the s25f driver added in a later patch, which needs to change
the chip's sector layout to be able to write to the entire flash.

Adapted from cros flashrom at


Change-Id: I2a522dc1fd3952793fbcad70afc6dd43850fbbc5
Signed-off-by: Nikolai Artemiev <>
M flash.h
M flashrom.c
2 files changed, 41 insertions(+), 0 deletions(-)

git pull ssh:// refs/changes/76/47276/9

To view, visit change 47276. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I2a522dc1fd3952793fbcad70afc6dd43850fbbc5
Gerrit-Change-Number: 47276
Gerrit-PatchSet: 9
Gerrit-Owner: Nikolai Artemiev <>
Gerrit-Reviewer: Angel Pons <>
Gerrit-Reviewer: Edward O'Callaghan <>
Gerrit-Reviewer: Nico Huber <>
Gerrit-Reviewer: build bot (Jenkins) <>
Gerrit-CC: Andrew McRae <>
Gerrit-CC: Paul Menzel <>
Gerrit-CC: Sam McNally <>
Gerrit-MessageType: newpatchset