From patchwork Mon May 4 12:35:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 244995 List-Id: U-Boot discussion From: jan.kiszka at web.de (Jan Kiszka) Date: Mon, 4 May 2020 14:35:28 +0200 Subject: [PATCH] drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC Message-ID: <031fe3cb-ac2a-685a-d0a1-660ac131489a@web.de> From: Jan Kiszka 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 --- drivers/crypto/rsa_mod_exp/mod_exp_uclass.c | 1 + 1 file changed, 1 insertion(+) -- 2.26.1 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, };