Actions
Refactoring #391
openRefactor singleton states into reentrant pattern
Start date:
06/17/2022
Due date:
% Done:
80%
Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:
Description
Move global singleton states into a struct and store within the spi_master
/ opaque_master
/ par_master
data field for the life-time of the driver.
This is one of the steps on the way to move *_master
data memory management behind the initialisation API.
List of programmers which need to be refactored:
atahpthttps://review.coreboot.org/c/flashrom/+/64963atapromisehttps://review.coreboot.org/c/flashrom/+/65706- atavia
*
buspirate_spihttps://review.coreboot.org/c/flashrom/+/52958- ch341a_spi
*
dediproghttps://review.coreboot.org/c/flashrom/+/56414developerbox_spihttps://review.coreboot.org/c/flashrom/+/54993digilent_spihttps://review.coreboot.org/c/flashrom/+/54012drkaiserhttps://review.coreboot.org/c/flashrom/+/65194- dummyflasher
*
ft2232_spihttps://review.coreboot.org/c/flashrom/+/52256gfxnvidiahttps://review.coreboot.org/c/flashrom/+/65342- internal
*
it8212https://review.coreboot.org/c/flashrom/+/65745jlink_spihttps://review.coreboot.org/c/flashrom/+/52560linux_mtdhttps://review.coreboot.org/c/flashrom/+/53947linux_spihttps://review.coreboot.org/c/flashrom/+/52285lspcon_i2c_spihttps://review.coreboot.org/c/flashrom/+/56103mediatek_i2c_spihttps://review.coreboot.org/c/flashrom/+/65746mstarddc_spihttps://review.coreboot.org/c/flashrom/+/54033- ni845x_spi
nic3comhttps://review.coreboot.org/c/flashrom/+/55107nicintelhttps://review.coreboot.org/c/flashrom/+/65974nicintel_eepromhttps://review.coreboot.org/c/flashrom/+/66491nicintel_spihttps://review.coreboot.org/c/flashrom/+/54995nicnatsemihttps://review.coreboot.org/c/flashrom/+/65970nicrealtekhttps://review.coreboot.org/c/flashrom/+/55108ogp_spihttps://review.coreboot.org/c/flashrom/+/54996pickit2_spihttps://review.coreboot.org/c/flashrom/+/52774pony_spihttps://review.coreboot.org/c/flashrom/+/54997raiden_debug_spihttps://review.coreboot.org/c/flashrom/+/56103rayer_spihttps://review.coreboot.org/c/flashrom/+/54998realtek_mst_i2c_spihttps://review.coreboot.org/c/flashrom/+/56103satamvhttps://review.coreboot.org/c/flashrom/+/65978satasiihttps://review.coreboot.org/c/flashrom/+/66075- serprog
*
stlinkv3_spihttps://review.coreboot.org/c/flashrom/+/54042usbblaster_spihttps://review.coreboot.org/c/flashrom/+/54044
*
- non-trivial case, this programmer requires some tricks
Actions