summaryrefslogtreecommitdiffstats
path: root/include/linux/hisi_acc_qm.h
diff options
context:
space:
mode:
authorWeili Qian <qianweili@huawei.com>2023-11-25 19:50:10 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-12-01 18:03:26 +0800
commitc66272a4c9932d6c585eef99039747617d48d662 (patch)
tree76f40ba7c9858bde584a98ebca8508dcb488691b /include/linux/hisi_acc_qm.h
parentfb4ac519c6caf5fdfcc30ef838cae55dbc919e2e (diff)
downloadlinux-c66272a4c9932d6c585eef99039747617d48d662.tar.gz
linux-c66272a4c9932d6c585eef99039747617d48d662.tar.bz2
linux-c66272a4c9932d6c585eef99039747617d48d662.zip
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 'include/linux/hisi_acc_qm.h')
-rw-r--r--include/linux/hisi_acc_qm.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/hisi_acc_qm.h b/include/linux/hisi_acc_qm.h
index ddc7ebb70523..e3c0a1297b2c 100644
--- a/include/linux/hisi_acc_qm.h
+++ b/include/linux/hisi_acc_qm.h
@@ -108,17 +108,13 @@ enum qm_stop_reason {
};
enum qm_state {
- QM_INIT = 0,
- QM_START,
- QM_CLOSE,
+ QM_WORK = 0,
QM_STOP,
};
enum qp_state {
- QP_INIT = 1,
- QP_START,
+ QP_START = 1,
QP_STOP,
- QP_CLOSE,
};
enum qm_hw_ver {