From: Jan Kiszka Date: Thu, 7 May 2020 18:36:03 +0000 (+0200) Subject: drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC X-Git-Tag: v2025.01-rc5-pxa1908~2402^2~1 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=cf2d07f004367e7b48fb1d21a31a0818adb0374a;p=u-boot.git drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC 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 CC: Marek Vasut Signed-off-by: Jan Kiszka --- diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c index 03b3d61403..4ce85b3224 100644 --- a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c +++ b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c @@ -32,6 +32,7 @@ U_BOOT_DRIVER(mod_exp_sw) = { .name = "mod_exp_sw", .id = UCLASS_MOD_EXP, .ops = &mod_exp_ops_sw, + .flags = DM_FLAG_PRE_RELOC, }; U_BOOT_DEVICE(mod_exp_sw) = {