git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50af8ba
)
NVMe: use namespace id for nvme_get_features
author
Keith Busch
<keith.busch@intel.com>
Wed, 25 Jul 2012 22:06:38 +0000
(16:06 -0600)
committer
Matthew Wilcox
<matthew.r.wilcox@intel.com>
Thu, 26 Jul 2012 16:46:36 +0000
(12:46 -0400)
The specification does not provide a use for command dword11 in the NVMe
Get Features command, but does use the NSID for some features.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme.c
patch
|
blob
|
history
diff --git
a/drivers/block/nvme.c
b/drivers/block/nvme.c
index
8993585
..
7bcd882
100644
(file)
--- a/
drivers/block/nvme.c
+++ b/
drivers/block/nvme.c
@@
-840,15
+840,15
@@
static int nvme_identify(struct nvme_dev *dev, unsigned nsid, unsigned cns,
}
static int nvme_get_features(struct nvme_dev *dev, unsigned fid,
- unsigned
dword11
, dma_addr_t dma_addr)
+ unsigned
nsid
, dma_addr_t dma_addr)
{
struct nvme_command c;
memset(&c, 0, sizeof(c));
c.features.opcode = nvme_admin_get_features;
+ c.features.nsid = cpu_to_le32(nsid);
c.features.prp1 = cpu_to_le64(dma_addr);
c.features.fid = cpu_to_le32(fid);
- c.features.dword11 = cpu_to_le32(dword11);
return nvme_submit_admin_cmd(dev, &c, NULL);
}