crypto: hisilicon/qm - fix the value of 'QM_SQC_VFT_BASE_MASK_V2'
authorWeili Qian <qianweili@huawei.com>
Fri, 5 Feb 2021 10:12:55 +0000 (18:12 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 10 Feb 2021 06:56:00 +0000 (17:56 +1100)
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>
drivers/crypto/hisilicon/qm.c

index 4a4ad82b08f21fd669496bc477bee195b75f5f7a..0495113f952acf8fd906d079f59dcef9e23fe32c 100644 (file)
 #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)