Attention is currently required from: Angel Pons.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/55872 )
Change subject: Makefile: Gather lists of dependencies by feature/lib
......................................................................
Patch Set 2:
(1 comment)
File Makefile:
https://review.coreboot.org/c/flashrom/+/55872/comment/f48f3dc8_c7dcb868
PS1, Line 107: CONFIG_ENE_LPC \
> As always thanks for spotting! I need to be more careful with rebasing.
Done
--
To view, visit https://review.coreboot.org/c/flashrom/+/55872
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6929181f18213e1434cbbc7ba2d2b0b04bd46a6a
Gerrit-Change-Number: 55872
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Mon, 28 Jun 2021 07:35:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Edward O'Callaghan, Angel Pons.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/55887 )
Change subject: dediprog: Separate shutdown from failed init cleanup
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
This is actually *the last one* which unlocks API change for register_shutdown!
--
To view, visit https://review.coreboot.org/c/flashrom/+/55887
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I3273da907614a042d50090338c337dfd64695354
Gerrit-Change-Number: 55887
Gerrit-PatchSet: 1
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Mon, 28 Jun 2021 07:21:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Anastasia Klimchuk has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/55887 )
Change subject: dediprog: Separate shutdown from failed init cleanup
......................................................................
dediprog: 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
https://review.coreboot.org/c/flashrom/+/51761
BUG=b:185191942
TEST=builds
Change-Id: I3273da907614a042d50090338c337dfd64695354
Signed-off-by: Anastasia Klimchuk <aklm(a)chromium.org>
---
M dediprog.c
1 file changed, 12 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/87/55887/1
diff --git a/dediprog.c b/dediprog.c
index 6a2d1f2..b47e8e9 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -1227,16 +1227,13 @@
msg_pinfo("Using dediprog id SF%06d.\n", found_id);
}
- if (register_shutdown(dediprog_shutdown, NULL))
- return 1;
-
/* Try reading the devicestring. If that fails and the device is old (FW < 6.0.0, which we can not know)
* then we need to try the "set voltage" command and then attempt to read the devicestring again. */
if (dediprog_check_devicestring()) {
if (dediprog_set_voltage())
- return 1;
+ goto init_err_cleanup_exit;
if (dediprog_check_devicestring())
- return 1;
+ goto init_err_cleanup_exit;
}
/* SF100/SF200 uses one in/out endpoint, SF600 uses separate in/out endpoints */
@@ -1261,11 +1258,11 @@
dediprog_set_spi_speed(spispeed_idx) ||
dediprog_set_spi_voltage(millivolt)) {
dediprog_set_leds(LED_ERROR);
- return 1;
+ goto init_err_cleanup_exit;
}
if (dediprog_standalone_mode())
- return 1;
+ goto init_err_cleanup_exit;
if ((dediprog_devicetype == DEV_SF100) ||
(dediprog_devicetype == DEV_SF600 && protocol() == PROTOCOL_V3))
@@ -1274,10 +1271,17 @@
if (protocol() >= PROTOCOL_V2)
spi_master_dediprog.features |= SPI_MASTER_4BA;
+ if (register_shutdown(dediprog_shutdown, NULL))
+ goto init_err_cleanup_exit;
+
if (register_spi_master(&spi_master_dediprog, NULL) || dediprog_set_leds(LED_NONE))
- return 1;
+ return 1; /* shutdown function does cleanup */
return 0;
+
+init_err_cleanup_exit:
+ dediprog_shutdown(NULL);
+ return 1;
}
const struct programmer_entry programmer_dediprog = {
--
To view, visit https://review.coreboot.org/c/flashrom/+/55887
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I3273da907614a042d50090338c337dfd64695354
Gerrit-Change-Number: 55887
Gerrit-PatchSet: 1
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-MessageType: newchange
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/55881 )
Change subject: Makefile: Use dependency lists to generate NEED_<library> vars
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
Patch set 2 works well with the default Manibuilder targets :)
--
To view, visit https://review.coreboot.org/c/flashrom/+/55881
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I30e6430a7e833a7f74eb973fb55bf1947ae2d87b
Gerrit-Change-Number: 55881
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Sun, 27 Jun 2021 23:31:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Angel Pons.
Hello build bot (Jenkins), Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/55872
to look at the new patch set (#2).
Change subject: Makefile: Gather lists of dependencies by feature/lib
......................................................................
Makefile: Gather lists of dependencies by feature/lib
For each feature or library that we treat as dependency, list which
programmers depend on it.
Change-Id: I6929181f18213e1434cbbc7ba2d2b0b04bd46a6a
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M Makefile
1 file changed, 49 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/72/55872/2
--
To view, visit https://review.coreboot.org/c/flashrom/+/55872
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6929181f18213e1434cbbc7ba2d2b0b04bd46a6a
Gerrit-Change-Number: 55872
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newpatchset
Hello build bot (Jenkins), Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/55873
to look at the new patch set (#2).
Change subject: Makefile: Add macro to disable unsupported programmers
......................................................................
Makefile: Add macro to disable unsupported programmers
`mark_unsupported` disables all programmers passed as arguments and
adds them to the UNSUPPORTED_FEATURES list. It's conveniently used
with our dependency lists, e.g.
$(call mark_unsupported,$(NEEDS_LIBUSB1) $(NEEDS_LIBFTDI))
Change-Id: I6c9b66dfa89ec3d71675576d03fcebfdea30ce7b
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M Makefile
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/73/55873/2
--
To view, visit https://review.coreboot.org/c/flashrom/+/55873
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6c9b66dfa89ec3d71675576d03fcebfdea30ce7b
Gerrit-Change-Number: 55873
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/55875
to look at the new patch set (#2).
Change subject: Makefile: Deflate handling of unsupported programmers for MinGW
......................................................................
Makefile: Deflate handling of unsupported programmers for MinGW
Change-Id: I20c17471f7b059e91b215fca833b767a003a9888
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M Makefile
1 file changed, 7 insertions(+), 102 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/75/55875/2
--
To view, visit https://review.coreboot.org/c/flashrom/+/55875
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I20c17471f7b059e91b215fca833b767a003a9888
Gerrit-Change-Number: 55875
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/55882
to look at the new patch set (#2).
Change subject: [DRAFT] Split Makefile
......................................................................
[DRAFT] Split Makefile
Now that the sections of the Makefile are somewhat visible again, it
actually looks well structured. How about splitting some of these
sections out?
Change-Id: I2fa86f8b686f61f09a8a5c929587ea71f3e59e78
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M Makefile
A Makefile.arch
A Makefile.defaults
A Makefile.deps
A Makefile.libs
A Makefile.os
A Makefile.programmers
7 files changed, 791 insertions(+), 693 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/82/55882/2
--
To view, visit https://review.coreboot.org/c/flashrom/+/55882
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I2fa86f8b686f61f09a8a5c929587ea71f3e59e78
Gerrit-Change-Number: 55882
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset