diff options
author | Weili Qian <qianweili@huawei.com> | 2023-11-25 14:50:10 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-12-01 13:03:26 +0300 |
commit | c66272a4c9932d6c585eef99039747617d48d662 (patch) | |
tree | 76f40ba7c9858bde584a98ebca8508dcb488691b /drivers/crypto/hisilicon/qm_common.h | |
parent | fb4ac519c6caf5fdfcc30ef838cae55dbc919e2e (diff) | |
download | linux-c66272a4c9932d6c585eef99039747617d48d662.tar.xz |
crypto: hisilicon/qm - simplify the status of qm
The 'QM_INIT' and 'QM_CLOSE' status of qm and 'QP_INIT'
and 'QP_CLOSE' status of queue are not actually used. Currently,
driver only needs to switch status when the device or queue
is enabled or stopped, Therefore, remove unneeded status to
simplify driver. In addition, rename'QM_START to'QM_WORK' for
ease to understand.
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/qm_common.h')
-rw-r--r-- | drivers/crypto/hisilicon/qm_common.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/crypto/hisilicon/qm_common.h b/drivers/crypto/hisilicon/qm_common.h index 7b0b15c83ec1..0760bf55f13e 100644 --- a/drivers/crypto/hisilicon/qm_common.h +++ b/drivers/crypto/hisilicon/qm_common.h @@ -72,10 +72,6 @@ struct qm_aeqc { __le32 dw6; }; -static const char * const qm_s[] = { - "init", "start", "close", "stop", -}; - int qm_set_and_get_xqc(struct hisi_qm *qm, u8 cmd, void *xqc, u32 qp_id, bool op); void hisi_qm_show_last_dfx_regs(struct hisi_qm *qm); void hisi_qm_set_algqos_init(struct hisi_qm *qm); |