projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
099c201
)
nvme: Fix endianness assignment to prp2 in nvme_identify()
author
Bin Meng
<bmeng.cn@gmail.com>
Tue, 22 Aug 2017 15:15:09 +0000
(08:15 -0700)
committer
Tom Rini
<trini@konsulko.com>
Mon, 28 Aug 2017 11:17:11 +0000
(07:17 -0400)
So far this is not causing any issue due to NVMe and x86 are using
the same endianness, but for correctness, it should be fixed.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/nvme.c
b/drivers/nvme/nvme.c
index 5d39cab90db1658028539f67812f860de9e7ad03..2ae947c6725557c62d05cb4c27d0a3566d895949 100644
(file)
--- a/
drivers/nvme/nvme.c
+++ b/
drivers/nvme/nvme.c
@@
-431,7
+431,7
@@
int nvme_identify(struct nvme_dev *dev, unsigned nsid,
c.identify.prp2 = 0;
} else {
dma_addr += (page_size - offset);
- c.identify.prp2 =
dma_addr
;
+ c.identify.prp2 =
cpu_to_le64(dma_addr)
;
}
c.identify.cns = cpu_to_le32(cns);