Hello again,
After some time and several meetings with my mentors, we have a little progress in the topic.
1) Refactoring singleton state.
Move all masters to new API. It includes reducing the of static global variables. More detailed info in the issue tracker[1].
Merged: atahpt[2] Under review: drkaiser[3], gfxnvidia[4]
2) Restoring PCI value explicitly.
Programmers can restore a PCI value themselves in shutdown function. More detailed info in the issue tracker[1].
Under review: atahpt[6]
3) Introducing default shutdown func.
We haven't been coming to any agreement. The best way is to finish refactoring master API first. And after that we'll return to this issue. See the comment thread in the patch[7] for more details.
[1] https://ticket.coreboot.org/issues/391 [2] https://review.coreboot.org/c/flashrom/+/64963 [3] https://review.coreboot.org/c/flashrom/+/65194 [4] https://review.coreboot.org/c/flashrom/+/65342 [5] https://ticket.coreboot.org/issues/389 [6] https://review.coreboot.org/c/flashrom/+/65386 [7] https://review.coreboot.org/c/flashrom/+/54890
-- Joursoir