diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-04-13 09:39:54 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-04-15 01:09:14 +0000 |
commit | ac2a65cec3e884e7407eab969a9e659ef25bc88c (patch) | |
tree | d143aff2cc778bed8ccf52e124148e70129f2f5c | |
parent | b01d7e9f518f47187b9bd848b801304d6d9a556d (diff) | |
download | flashrom-ac2a65cec3e884e7407eab969a9e659ef25bc88c.tar.gz flashrom-ac2a65cec3e884e7407eab969a9e659ef25bc88c.tar.bz2 flashrom-ac2a65cec3e884e7407eab969a9e659ef25bc88c.zip |
raiden_debug_spi.c: Allow custom_rst param value of 'false'
As identified while documenting driver, allow for passing
'false' even though it is the default for custom_rst to be
consistent.
BUG=b:224358254
TEST=builds
Change-Id: I25bfe6f8e3f7cfffb1a9c99ac90ec56a750d7f84
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/63601
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sam McNally <sammc@google.com>
-rw-r--r-- | raiden_debug_spi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/raiden_debug_spi.c b/raiden_debug_spi.c index 3f355523..65ce32bb 100644 --- a/raiden_debug_spi.c +++ b/raiden_debug_spi.c @@ -1412,9 +1412,11 @@ static int get_ap_request_type(void) int ap_request = RAIDEN_DEBUG_SPI_REQ_ENABLE_AP; char *custom_rst_str = extract_programmer_param("custom_rst"); if (custom_rst_str) { - if (!strcasecmp(custom_rst_str, "true")) + if (!strcasecmp(custom_rst_str, "true")) { ap_request = RAIDEN_DEBUG_SPI_REQ_ENABLE_AP_CUSTOM; - else { + } else if (!strcasecmp(custom_rst_str, "false")) { + ap_request = RAIDEN_DEBUG_SPI_REQ_ENABLE_AP; + } else { msg_perr("Invalid custom rst param: %s\n", custom_rst_str); ap_request = -1; |