Skip to content

Commit

Permalink
crypto: safexcel - Raise firmware load failure message to error
Browse files Browse the repository at this point in the history
At the moment if there is no firmware available for the safexcel driver
it will fail to load with a cryptic:

crypto-safexcel f2800000.crypto: TRC init: 15360d,80a (48r,256h)
crypto-safexcel f2800000.crypto: HW init failed (-2)

Raise the logging level of the firmware load failure to err rather than
dbg so that it's obvious what the reason for the HW init failure is.

Signed-off-by: Jonathan McDowell <noodles@earth.li>
Reviewed-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
u1f35c authored and herbertx committed Mar 14, 2023
1 parent 88fca80 commit 86e8e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/inside-secure/safexcel.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ static int eip197_load_firmwares(struct safexcel_crypto_priv *priv)
goto retry_fw;
}

dev_dbg(priv->dev, "Firmware load failed.\n");
dev_err(priv->dev, "Firmware load failed.\n");

return ret;
}
Expand Down

0 comments on commit 86e8e3c

Please sign in to comment.