Skip to content

Commit

Permalink
drivers: stm32_saes: remove probe verification on base address.
Browse files Browse the repository at this point in the history
An assert was used to ensure we only probe one instance of SAES.
It can create an error if the probe is deferred.
Remove assert as it can create an error and the probe will fail when
registering in the crypto framework.

Fixes: 4320f5c ("crypto: stm32: SAES cipher support")
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
  • Loading branch information
tbourgoi committed Apr 19, 2024
1 parent fc3241e commit 9982ab7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/drivers/crypto/stm32/stm32_saes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1428,9 +1428,7 @@ static TEE_Result stm32_saes_pm(enum pm_op op, uint32_t pm_hint,
static TEE_Result stm32_saes_probe(const void *fdt, int node,
const void *compat_data __unused)
{
TEE_Result res = TEE_SUCCESS;

assert(!saes_pdata.base);
TEE_Result res = TEE_ERROR_GENERIC;

res = stm32_saes_parse_fdt(&saes_pdata, fdt, node);
if (res)
Expand Down

0 comments on commit 9982ab7

Please sign in to comment.