Skip to content

Commit

Permalink
crypto: hisilicon/qm - fix the value of 'QM_SQC_VFT_BASE_MASK_V2'
Browse files Browse the repository at this point in the history
Since the size of base number is 16 bits, update the value of
'QM_SQC_VFT_BASE_MASK_V2' as 'GENMASK(15, 0)'.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Reviewed-by: Zaibo Xu <xuzaibo@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Weili Qian authored and Herbert Xu committed Feb 10, 2021
1 parent 80d89fa commit 7f5151e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/hisilicon/qm.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
#define QM_CQC_VFT_VALID (1ULL << 28)

#define QM_SQC_VFT_BASE_SHIFT_V2 28
#define QM_SQC_VFT_BASE_MASK_V2 GENMASK(5, 0)
#define QM_SQC_VFT_BASE_MASK_V2 GENMASK(15, 0)
#define QM_SQC_VFT_NUM_SHIFT_V2 45
#define QM_SQC_VFT_NUM_MASK_v2 GENMASK(9, 0)

Expand Down

0 comments on commit 7f5151e

Please sign in to comment.