summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnkit Kumar <ankit.kumar@samsung.com>2023-06-23 15:38:05 +0300
committerKeith Busch <kbusch@kernel.org>2023-07-10 19:12:31 +0300
commitb938e6603660652dc3db66d3c915fbfed3bce21d (patch)
treec775be5d54beff228fbab23a1ad33b95ec99b999 /include
parent9bcf156f5897e91e21be54960b46774f0682afad (diff)
downloadlinux-b938e6603660652dc3db66d3c915fbfed3bce21d.tar.xz
nvme: fix the NVME_ID_NS_NVM_STS_MASK definition
As per NVMe command set specification 1.0c Storage tag size is 7 bits. Fixes: 4020aad85c67 ("nvme: add support for enhanced metadata") Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com> Reviewed-by: Kanchan Joshi <joshi.k@samsung.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nvme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 182b6d614eb1..26dd3f859d9d 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -473,7 +473,7 @@ struct nvme_id_ns_nvm {
};
enum {
- NVME_ID_NS_NVM_STS_MASK = 0x3f,
+ NVME_ID_NS_NVM_STS_MASK = 0x7f,
NVME_ID_NS_NVM_GUARD_SHIFT = 7,
NVME_ID_NS_NVM_GUARD_MASK = 0x3,
};