aboutsummaryrefslogtreecommitdiffstats
path: root/Doxyfile
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-04-13 10:15:26 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2021-04-18 12:15:39 +0000
commit6b5736c991863789ee2b516d0aab238355f781fe (patch)
tree8674c4324aef7b7232eccfda0c83a7c452c9a061 /Doxyfile
parentf227cd37603da51e1315ae2b8a0f286f72288110 (diff)
downloadflashrom-6b5736c991863789ee2b516d0aab238355f781fe.tar.gz
flashrom-6b5736c991863789ee2b516d0aab238355f781fe.tar.bz2
flashrom-6b5736c991863789ee2b516d0aab238355f781fe.zip
linux_spi.c: Separate shutdown from failed init cleanup
Shutdown function was covering two different jobs here: 1) the actual shutdown which is run at the end of the driver's lifecycle and 2) cleanup in cases when initialisation failed. Now, shutdown is only doing its main job (#1), and the driver itself is doing cleanup when init fails (#2). The good thing is that now resources are released/closed immediately in cases when init fails (vs shutdown function which was run at some point later), and the driver leaves clean space after itself if init fails. And very importantly this unlocks API change which plans to move register_shutdown inside register master API, see this https://review.coreboot.org/c/flashrom/+/51761 TEST=builds BUG=b:140394053 Change-Id: I1c8da2878cd0e85a1e43ba9b4b8e6f3d9f38ae5c Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52284 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'Doxyfile')
0 files changed, 0 insertions, 0 deletions