summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexander Goncharov <chat@joursoir.net>2022-06-24 16:58:16 +0300
committerAnastasia Klimchuk <aklm@chromium.org>2022-08-09 23:19:15 +0000
commit02f43e89bae6bcdd7505af0ccd361e6eb3d3c74c (patch)
treea077f609bbc914d96d19c689a4ff64617be09c77 /tests
parentdb026ea281bc36972c3a4fdc6009407180bf28d3 (diff)
downloadflashrom-02f43e89bae6bcdd7505af0ccd361e6eb3d3c74c.tar.gz
flashrom-02f43e89bae6bcdd7505af0ccd361e6eb3d3c74c.tar.bz2
flashrom-02f43e89bae6bcdd7505af0ccd361e6eb3d3c74c.zip
atahpt: restore flash access state explicitly
Instead of using reversible write (rpci_write_long) that relies on global state, do it manually. Save original PCI config space register contents to programmer's structure during initialization and restore it in programmer's shutdown. TOPIC=reduce_global_pci_state TEST=builds Change-Id: I9996bb4d71801034e66ba0c233846e19fa29224d Signed-off-by: Alexander Goncharov <chat@joursoir.net> Ticket: https://ticket.coreboot.org/issues/389 Reviewed-on: https://review.coreboot.org/c/flashrom/+/65386 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Thomas Heijligen <src@posteo.de>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions