drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC
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]>
Signed-off-by Jan Kiszka <[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
@@ -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