summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnkit Kumar <ankit.kumar@samsung.com>2023-06-23 18:08:05 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-23 13:53:45 +0200
commit5647f239a7c00f53b4d6a3300f57f029ea48660c (patch)
tree0b2ef5e38e83228b64e89173dcf3337926c1f333
parentdcb2303c515560bbd3346e4d29e371402add685e (diff)
downloadlinux-stable-5647f239a7c00f53b4d6a3300f57f029ea48660c.tar.gz
linux-stable-5647f239a7c00f53b4d6a3300f57f029ea48660c.tar.bz2
linux-stable-5647f239a7c00f53b4d6a3300f57f029ea48660c.zip
nvme: fix the NVME_ID_NS_NVM_STS_MASK definition
[ Upstream commit b938e6603660652dc3db66d3c915fbfed3bce21d ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
-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 779507ac750b..2819d6c3a6b5 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,
};