Attention is currently required from: Nico Huber, Angel Pons, Anastasia Klimchuk.

Anastasia Klimchuk uploaded patch set #3 to this change.

View Change

dediprog.c: Refactor singleton states into reentrant pattern

Move global singleton states into a struct and store within
the spi_master data field for the life-time of the driver.

This is one of the steps on the way to move spi_master data
memory management behind the initialisation API, for more
context see other patches under the same topic "register_master_api".

TEST=builds and ninja test

Change-Id: I72085e750af97b94dfa94f2ebf2a134e41a2ec8d
Signed-off-by: Anastasia Klimchuk <>
M dediprog.c
1 file changed, 159 insertions(+), 114 deletions(-)

git pull ssh:// refs/changes/14/56414/3

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

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I72085e750af97b94dfa94f2ebf2a134e41a2ec8d
Gerrit-Change-Number: 56414
Gerrit-PatchSet: 3
Gerrit-Owner: Anastasia Klimchuk <>
Gerrit-Reviewer: Angel Pons <>
Gerrit-Reviewer: Edward O'Callaghan <>
Gerrit-Reviewer: Nico Huber <>
Gerrit-Reviewer: build bot (Jenkins) <>
Gerrit-CC: Paul Menzel <>
Gerrit-Attention: Nico Huber <>
Gerrit-Attention: Angel Pons <>
Gerrit-Attention: Anastasia Klimchuk <>
Gerrit-MessageType: newpatchset