[PATCH] drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC

Jan Kiszka jan.kiszka at web.de
Mon May 4 14:35:28 CEST 2020

From: Jan Kiszka <jan.kiszka at siemens.com>

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

Fixes: 17e117408571 ("drivers: crypto: rsa_mod_exp: avoid DM_FLAG_PRE_RELOC")
CC: Heinrich Schuchardt <xypron.glpk at gmx.de>
CC: Marek Vasut <marex at denx.de>
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
 drivers/crypto/rsa_mod_exp/mod_exp_uclass.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
index e91fe64458..298b2e579b 100644
--- a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
+++ b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
@@ -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,

More information about the U-Boot mailing list