Skip to contentSkip to conversation

drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC

PATCH New Jan Kiszka 1 participant 1 message May 4, 2020 Crypto API

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC

From: Jan Kiszka <[email protected]>

This driver is safe to use in SPL without relocation. Denying DM_FLAG_PRE_RELOC prevents its usability for verifying the main U-Boot or other artifacts from the SPL unless needless enabling the full driver set (SPL_OF_PLATDATA).

Fixes 17e117408571 ("drivers: crypto: rsa_mod_exp: avoid DM_FLAG_PRE_RELOC")
CC Heinrich Schuchardt <[email protected]>
CC Marek Vasut <[email protected]>
---
 drivers/crypto/rsa_mod_exp/mod_exp_uclass.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/rsa_mod_exp/mod_exp_uclass.c +1 -0
index e91fe64458..298b2e579b 100644
@@ -40,4 +40,5 @@ int rsa_mod_exp(struct udevice *dev, const uint8_t *sig, uint32_t sig_len,
 UCLASS_DRIVER(mod_exp) = {
 	.id		= UCLASS_MOD_EXP,
 	.name		= "rsa_mod_exp",
+	.flags		= DM_FLAG_PRE_RELOC,
 };

--
2.26.1