Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ankit Kumar and committed by
Keith Busch
b938e660 9bcf156f

+1 -1
+1 -1
include/linux/nvme.h
··· 473 473 }; 474 474 475 475 enum { 476 - NVME_ID_NS_NVM_STS_MASK = 0x3f, 476 + NVME_ID_NS_NVM_STS_MASK = 0x7f, 477 477 NVME_ID_NS_NVM_GUARD_SHIFT = 7, 478 478 NVME_ID_NS_NVM_GUARD_MASK = 0x3, 479 479 };