diff options
| author | Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com> | 2025-07-01 10:47:26 +0100 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-07-18 20:51:59 +1000 |
| commit | 7ea5ea3e58b037e0751c6406cea1e048892be4de (patch) | |
| tree | 56c5b045a56557c19d106ee55b332549c26d6d81 | |
| parent | 590f8a67ba3cafba48e62d20ee03ab7d9a2c51f9 (diff) | |
| download | linux-7ea5ea3e58b037e0751c6406cea1e048892be4de.tar.gz linux-7ea5ea3e58b037e0751c6406cea1e048892be4de.zip | |
crypto: qat - use pr_fmt() in adf_gen4_hw_data.c
Add pr_fmt() to adf_gen4_hw_data.c logging and update the debug and error
messages to utilize it accordingly.
This does not introduce any functional changes.
Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
| -rw-r--r-- | drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c b/drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c index 258adc0b49e0..e6a8954cbef1 100644 --- a/drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c +++ b/drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c @@ -1,5 +1,8 @@ // SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) /* Copyright(c) 2020 Intel Corporation */ + +#define pr_fmt(fmt) "QAT: " fmt + #include <linux/bitops.h> #include <linux/iopoll.h> #include <asm/div64.h> @@ -523,7 +526,7 @@ static void bank_state_save(struct adf_hw_csr_ops *ops, void __iomem *base, u32 __expect_val = (expect_val); \ u32 actual_val = op(args); \ (__expect_val == actual_val) ? 0 : \ - (pr_err("QAT: Fail to restore %s register. Expected 0x%x, actual 0x%x\n", \ + (pr_err("Fail to restore %s register. Expected 0x%x, actual 0x%x\n", \ name, __expect_val, actual_val), -EINVAL); \ }) @@ -593,7 +596,7 @@ static int bank_state_restore(struct adf_hw_csr_ops *ops, void __iomem *base, */ val = state->ringexpstat; if (val) { - pr_info("QAT: Bank %u state not fully restored due to exception in saved state (%#x)\n", + pr_info("Bank %u state not fully restored due to exception in saved state (%#x)\n", bank, val); return 0; } @@ -601,8 +604,7 @@ static int bank_state_restore(struct adf_hw_csr_ops *ops, void __iomem *base, /* Ensure that the restoration process completed without exceptions */ tmp_val = ops->read_csr_exp_stat(base, bank); if (tmp_val) { - pr_err("QAT: Bank %u restored with exception: %#x\n", - bank, tmp_val); + pr_err("Bank %u restored with exception: %#x\n", bank, tmp_val); return -EFAULT; } |
