Attention is currently required from: Subrata Banik, Paul Menzel, Angel Pons, Anastasia Klimchuk.
View Change
1 comment:
File ichspi.c:
Patch Set #8, Line 68: */
> This comment is much too long, starts by describing the past state of the […]
I would prefer at most one line as a code comment. We often have timeout
constants, they all have their reasons, and we shouldn't write one page
of text per constant. Where to place it depends on how much you want to
say. If you keep it to the point (we may have to wait for other masters,
that can take up to (n - 1) * max), that's something for the commit
message. If you want to say more, please put it in Documentation/.
Also, I noticed now that the constant is only used in a single function,
it would be better to move it there into the C code, e.g.
static int ich_hwseq_wait_for_cycle_complete(unsigned int len, enum ich_chipset ich_gen)
{
/* The bus may be busy due to other masters, hence the long timeout of 30s. */
const unsigned int timeout_us = 30*1000*1000;
To view, visit change 62867. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ifa910dea794175d8ee2ad277549e5a0d69cba45b
Gerrit-Change-Number: 62867
Gerrit-PatchSet: 8
Gerrit-Owner: Subrata Banik <subratabanik@google.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-CC: Subrata Banik <subi.banik@gmail.com>
Gerrit-Attention: Subrata Banik <subi.banik@gmail.com>
Gerrit-Attention: Subrata Banik <subratabanik@google.com>
Gerrit-Attention: Paul Menzel <paulepanter@mailbox.org>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Comment-Date: Mon, 04 Apr 2022 11:38:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h@gmx.de>
Comment-In-Reply-To: Subrata Banik <subratabanik@google.com>
Gerrit-MessageType: comment