View Change
2 comments:
File sb600spi.c:
Patch Set #1, Line 451: (amd_gen < CHIPSET_BOLTON))
I'm not sure. […]
Looking at the code below again, it seems that spireadmode does not have an effect for chipsets < Bolton. Instead of returning, I would just ignore the parameter (and maybe print a warning that it's not being used)
Patch Set #1, Line 509:
if (spispeed_idx >= 0 && set_speed(dev, spispeed_idx) != 0) {
return 1;
}
return 0;
Agree. Except it would return 0 (success) if spispeed_idx < 0.
Well, if spispeed_idx is negative, the previous code would have barfed. Is it a problem if set_speed is not called?
To view, visit change 38833. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Id7fec7eb87ff811148217dc56a86dca3fef122ff
Gerrit-Change-Number: 38833
Gerrit-PatchSet: 2
Gerrit-Owner: Rob Barnes <robbarnes@google.com>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Rob Barnes <robbarnes@google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Comment-Date: Sat, 15 Feb 2020 10:53:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Rob Barnes <robbarnes@google.com>
Comment-In-Reply-To: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: comment