Attention is currently required from: Angel Pons, Anastasia Klimchuk.
Edward O'Callaghan has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/52560 )
Change subject: jlink_spi.c: Refactor singleton states into reentrant pattern
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
File jlink_spi.c:
https://review.coreboot.org/c/flashrom/+/52560/comment/f7a3cd10_ba9b7b78
PS1, Line 55: jaylink_c
The `jaylink_` prefix on these two members is no longer needed imho. Although such a change doesn't need to happen in this commit.
--
To view, visit https://review.coreboot.org/c/flashrom/+/52560
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: If13ad0c979ccf62ca4ccbd479d471c657895ef59
Gerrit-Change-Number: 52560
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: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Sam McNally <sammc(a)google.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Wed, 21 Apr 2021 06:30:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Edward O'Callaghan.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/52557 )
Change subject: dummyflasher.c: Fix memory leak on shutdown
......................................................................
Patch Set 1:
(3 comments)
File dummyflasher.c:
https://review.coreboot.org/c/flashrom/+/52557/comment/b2790067_ae6a8915
PS1, Line 716: return 1;
> Doesn't `data` leak here as well? And also in the other return paths.
Yes it does. I think dummy needs refactoring of init, to allocate data at the very end of init (instead of the very beginning) and also to make sure all init failure paths do cleanup.
I am doing this gradually for the tree, it's just dummy's turn hasn't come yet!
https://review.coreboot.org/c/flashrom/+/52557/comment/eecb8945_70377042
PS1, Line 982: free(status);
> For another patch: this is the same story as CB:46551
Thanks for the link, I will definitely look at this.
https://review.coreboot.org/c/flashrom/+/52557/comment/c0321413_ec6c46dd
PS1, Line 986: return 1;
> `flashchip_contents` also leaks here. We could also move this check to run before the malloc() call. […]
Yes, malloc should be at the end I think.
I would [ideally] submit this one first, if possible, so that I won't need to merge with myself.
--
To view, visit https://review.coreboot.org/c/flashrom/+/52557
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I36f76d84d3547d081c64857e06da23ee63cc5594
Gerrit-Change-Number: 52557
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-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Comment-Date: Wed, 21 Apr 2021 00:01:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Sam McNally, Angel Pons.
Peter Marheine has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/52405 )
Change subject: lspcon, realtek_mst: move i2c bus resolution from params to i2c_helper
......................................................................
Patch Set 9:
(1 comment)
File i2c_helper_linux.c:
https://review.coreboot.org/c/flashrom/+/52405/comment/40e0f7cf_c0a42434
PS8, Line 48: {
> nit: another brace that needs to be moved
Done
--
To view, visit https://review.coreboot.org/c/flashrom/+/52405
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ieea57b2445f3aca16c87d8f839dff131009531a0
Gerrit-Change-Number: 52405
Gerrit-PatchSet: 9
Gerrit-Owner: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Sam McNally <sammc(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Sam McNally <sammc(a)google.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Tue, 20 Apr 2021 23:20:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Sam McNally, Peter Marheine.
Hello Sam McNally, build bot (Jenkins), Edward O'Callaghan,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/52405
to look at the new patch set (#9).
Change subject: lspcon, realtek_mst: move i2c bus resolution from params to i2c_helper
......................................................................
lspcon, realtek_mst: move i2c bus resolution from params to i2c_helper
The general pattern of taking either a bus number or device path should
apply to both of these programmers, so change the I2C API to provide a
common way to get the device path and reduce the duplication between
the two programmers.
TEST=Both programmers now accept either bus= or devpath=
Change-Id: Ieea57b2445f3aca16c87d8f839dff131009531a0
---
M i2c_helper.h
M i2c_helper_linux.c
M lspcon_i2c_spi.c
M realtek_mst_i2c_spi.c
4 files changed, 90 insertions(+), 128 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/05/52405/9
--
To view, visit https://review.coreboot.org/c/flashrom/+/52405
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ieea57b2445f3aca16c87d8f839dff131009531a0
Gerrit-Change-Number: 52405
Gerrit-PatchSet: 9
Gerrit-Owner: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Sam McNally <sammc(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Sam McNally <sammc(a)google.com>
Gerrit-Attention: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Nico Huber, Edward O'Callaghan, Anastasia Klimchuk.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/52557 )
Change subject: dummyflasher.c: Fix memory leak on shutdown
......................................................................
Patch Set 1: Code-Review+2
(4 comments)
Patchset:
PS1:
+2 because the patch does what the commit message says, but I noticed some more issues. I'm fine with fixing them in separate commits.
File dummyflasher.c:
https://review.coreboot.org/c/flashrom/+/52557/comment/77c93734_f899fb6a
PS1, Line 716: return 1;
Doesn't `data` leak here as well? And also in the other return paths.
https://review.coreboot.org/c/flashrom/+/52557/comment/e94bc837_a85b1320
PS1, Line 982: free(status);
For another patch: this is the same story as CB:46551
https://review.coreboot.org/c/flashrom/+/52557/comment/dbeb100e_0053c97f
PS1, Line 986: return 1;
`flashchip_contents` also leaks here. We could also move this check to run before the malloc() call. I would suggest fixing this in a separate commit.
--
To view, visit https://review.coreboot.org/c/flashrom/+/52557
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I36f76d84d3547d081c64857e06da23ee63cc5594
Gerrit-Change-Number: 52557
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-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Tue, 20 Apr 2021 22:16:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
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/+/52497 )
Change subject: tests: Add unit test to run init/shutdown for dummyflasher.c
......................................................................
Patch Set 3:
(4 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/52497/comment/42867ba1_28a359c3
PS2, Line 9: I plan to do this for all drivers in programmer table,
: one at a time. Dummy is the first and it does not need
: mocks.
:
> This explains a overarching strategy however is spare on the detail of the commit itself. […]
Done
https://review.coreboot.org/c/flashrom/+/52497/comment/787f0482_e11e0983
PS2, Line 13: After this was rebased on the top of memory checks
: https://review.coreboot.org/c/flashrom/+/51243 ,
: dummy has been discovered to leak memory on shutdown,
: so I fix it here.
> separate patch as it is not related to the introduction of the test code itself just that a previous […]
Done
Patchset:
PS3:
thanks for review!
File dummyflasher.c:
https://review.coreboot.org/c/flashrom/+/52497/comment/78d912b3_8aac47ad
PS2, Line 653: free(data);
> Fix the memory leak in a separate patch as not to be conflated with the introduction of test code. […]
Done
--
To view, visit https://review.coreboot.org/c/flashrom/+/52497
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I3c0ef73397f00c1db7aabb5f9f00cb43525af29c
Gerrit-Change-Number: 52497
Gerrit-PatchSet: 3
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.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: Tue, 20 Apr 2021 22:11:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: comment