Attention is currently required from: Anastasia Klimchuk, Alexander Goncharov.
Alexander Goncharov uploaded patch set #6 to this change.
ch341a_spi: 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 patchset also includes stdlib.h to be able to work with
memory allocation. Pass programmer's data as a parameter to
functions that need it.
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 specified below.
TOPIC=register_master_api
TEST=Tested on flash W25Q128JVSQ
flashrom -E # Result: success
flashrom -v ff.bin # Result: verified
flashrom -w firmware.bin # Result: success
flashrom -v firmware.bin # Result: verified
Change-Id: I9fe72bff88b7f8778c1199bdab8ba43bf32e1c8c
Signed-off-by: Alexander Goncharov <chat@joursoir.net>
Ticket: https://ticket.coreboot.org/issues/391
---
M ch341a_spi.c
1 file changed, 113 insertions(+), 78 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/07/72807/6
To view, visit change 72807. To unsubscribe, or for help writing mail filters, visit settings.