OSDN Git Service

crypto: safexcel - Raise firmware load failure message to error
authorJonathan McDowell <noodles@earth.li>
Tue, 28 Feb 2023 18:28:40 +0000 (18:28 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Mar 2023 09:06:44 +0000 (17:06 +0800)
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>
drivers/crypto/inside-secure/safexcel.c

index 6858753..5e10ab2 100644 (file)
@@ -474,7 +474,7 @@ release_fw:
                goto retry_fw;
        }
 
-       dev_dbg(priv->dev, "Firmware load failed.\n");
+       dev_err(priv->dev, "Firmware load failed.\n");
 
        return ret;
 }