We need a NSIS Controller List CNS value when requesting a NSID-specific
list; we're currently using a non-NSID-specific Identify here.
Reported-by: Willy Tu <wltu@google.com>
Tested-by: Willy Tu <wltu@google.com>
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
.result = NULL,
.data = list,
.args_size = sizeof(args),
- .cns = NVME_IDENTIFY_CNS_CTRL_LIST,
+ .cns = NVME_IDENTIFY_CNS_NS_CTRL_LIST,
.csi = NVME_CSI_NVM,
.nsid = nsid,
.cntid = cntid,
assert(req->data_len == 0);
cns = hdr[45] << 8 | hdr[44];
- assert(cns == NVME_IDENTIFY_CNS_CTRL_LIST);
+ assert(cns == NVME_IDENTIFY_CNS_NS_CTRL_LIST);
nsid = hdr[11] << 24 | hdr[10] << 16 | hdr[9] << 8 | hdr[8];
assert(nsid == 0x01020304);