summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2021-01-19 12:29:21 -0700
committerPatrick Georgi <pgeorgi@google.com>2021-01-21 11:04:04 +0000
commite78e90918057a0d32a73b066c0eb2138229cc287 (patch)
tree9f3a38bff947b940ff6cc863acac0037c57b2fcf /src/drivers
parent4ed4c2474b6e29207c8e00e969abf7ba63d2983d (diff)
src/drivers/smmstore: Fix SMMSTOREv1 clear command
The `clear` command for SMMSTORE version 1 does not require a parameter. Change-Id: I992b7ce5962bf7ee62b7e1970ae7aa1b975ef42e Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49724 Reviewed-by: Jeremy Soller <jeremy@system76.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/smmstore/smi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/smmstore/smi.c b/src/drivers/smmstore/smi.c
index b90338c619..6ea447ffe6 100644
--- a/src/drivers/smmstore/smi.c
+++ b/src/drivers/smmstore/smi.c
@@ -143,7 +143,7 @@ static uint32_t smmstorev2_exec(uint8_t command, void *param)
uint32_t smmstore_exec(uint8_t command, void *param)
{
- if (!param)
+ if (command != SMMSTORE_CMD_CLEAR && !param)
return SMMSTORE_RET_FAILURE;
if (CONFIG(SMMSTORE_V2))