Attention is currently required from: Felix Singer, Angel Pons, Michael Niewöhner.
Patch set 3:Code-Review +2
View Change
1 comment:
File ft2232_spi.c:
Patch Set #2, Line 417:
/* Flyswatter and Flyswatter-2 require GPIO bits 0x80
* and 0x40 to be driven low to enable output buffers */
pindir = 0xcb;
Done
IMHO, a good argument not to add a redundant variable. Isn't this
pindir & 0xf0 == rsv_bits
always true after detecting the specific programmer? If we can use
that as a rule to write a patch, we can also just write it into code
to avoid human errors. One could still do it with an additional
variable, e.g. at the right spot:
const uint8_t rsv_bits = pindir & 0xf0;
To view, visit change 57809. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ied450fa5ef358153adefec3beabc63a62c9f60cd
Gerrit-Change-Number: 57809
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Niewöhner <foss@mniewoehner.de>
Gerrit-Reviewer: Felix Singer <felixsinger@posteo.net>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Attention: Felix Singer <felixsinger@posteo.net>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Michael Niewöhner <foss@mniewoehner.de>
Gerrit-Comment-Date: Thu, 23 Sep 2021 09:05:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Michael Niewöhner <foss@mniewoehner.de>
Gerrit-MessageType: comment