aboutsummaryrefslogtreecommitdiffstats
path: root/atahpt.c
diff options
context:
space:
mode:
authorAlexander Goncharov <chat@joursoir.net>2023-01-20 13:56:31 +0400
committerAnastasia Klimchuk <aklm@chromium.org>2023-04-13 09:32:30 +0000
commitabbf988ecbb6236acfe187e066b4a9ddcc21e4a7 (patch)
tree3f29fcf20741339669f485749ecfb8f9fe2af075 /atahpt.c
parentc61bbb1f9ff4456c0eb384a49e8a7a2b026cd234 (diff)
downloadflashrom-abbf988ecbb6236acfe187e066b4a9ddcc21e4a7.tar.gz
flashrom-abbf988ecbb6236acfe187e066b4a9ddcc21e4a7.tar.bz2
flashrom-abbf988ecbb6236acfe187e066b4a9ddcc21e4a7.zip
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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/72807 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'atahpt.c')
0 files changed, 0 insertions, 0 deletions