Nikolai Artemiev uploaded patch set #4 to this change.

View Change

flashrom: import chip restore handler from cros flashrom

Allows drivers to register a callback function that gets
called to reset the chip state once programming has finished.

This is used by the s25f driver added in a subsequent patch,
which changes chips with a hybrid (non-uniformly sized) sector
layout to a uniform layout, and registers a restore function
to change the chip back to the hybrid layout at exit.


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/4

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: 4
Gerrit-Owner: Nikolai Artemiev <>
Gerrit-Reviewer: Angel Pons <>
Gerrit-Reviewer: Edward O'Callaghan <>
Gerrit-Reviewer: build bot (Jenkins) <>
Gerrit-CC: Andrew McRae <>
Gerrit-CC: Sam McNally <>
Gerrit-MessageType: newpatchset