diff options
author | Brian J. Nemec <bnemec@chromium.org> | 2020-07-17 11:20:33 -0700 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2020-07-20 04:48:10 +0000 |
commit | 7a88780e922d7852ca6f8c573449921a58dea3d9 (patch) | |
tree | dfcbffb6f01f4548106a661c77f6a88903e05ac3 /hwaccess.h | |
parent | bd9b4b6d8d5d80a0941ba5f02ebeee00f6996baf (diff) | |
download | flashrom-7a88780e922d7852ca6f8c573449921a58dea3d9.tar.gz flashrom-7a88780e922d7852ca6f8c573449921a58dea3d9.tar.bz2 flashrom-7a88780e922d7852ca6f8c573449921a58dea3d9.zip |
raiden_debug_spi.c: Clean up the USB SPI protocol
Perform some clean up the USB SPI protocol 1 prior to adding
protocol 2 to improve consistency and correct minor issues.
* Minor clean up the comments descriptor for the protocol.
This adds the location of another relevant file, corrects the
omission of one of the protocol modes, makes the direction
of the packets explicit, and minor formatting changes.
* Fix typos in constants associated with the retry mechanism.
* Clean declarations to match the EC code formats.
* Updates the error message formatting so protocol V1 closely
matches the V2 protocol for consistency.
* Minor changes to the structure, moving validation of the
arguments earlier in the transfer. Overall to keep V1 and
V2 closer aligned and reduce future changes in the V1 code.
BUG=b:139058552
BRANCH=none
TEST=Builds
Signed-off-by: Brian J. Nemec <bnemec@chromium.com>
Change-Id: I17e62dabee2724eecf8d5a1a7827f06f0c7514df
Reviewed-on: https://review.coreboot.org/c/flashrom/+/41597
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'hwaccess.h')
0 files changed, 0 insertions, 0 deletions