> AFAICS, the code in stlinkv3_spi.c could be much condensed by a
> simple function that handles the command/answer pattern, e.g.
>
> int stlinkv3_command(const uint8_t *command, size_t command_length,
> uint8_t *answer, size_t answer_length);

Many thanks for the review! I have fixed your review comments, but have not tested with actual hardware yet. I will try to test it tomorrow and let you know the results.

View Change

5 comments:

To view, visit change 34661. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Icffab87ac8f2c570187ed753ec70f054541873a4
Gerrit-Change-Number: 34661
Gerrit-PatchSet: 5
Gerrit-Owner: Miklós Márton <martonmiklosqdev@gmail.com>
Gerrit-Reviewer: Miklós Márton <martonmiklosqdev@gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Comment-Date: Sun, 22 Dec 2019 21:24:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h@gmx.de>
Gerrit-MessageType: comment