diff options
author | Johannes Thumshirn <jthumshirn@suse.de> | 2016-07-07 07:54:10 (GMT) |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-07-07 14:51:52 (GMT) |
commit | 6f929702191deb12d3cef8d9b7e774c0ab54fe5b (patch) | |
tree | 062a5c792deb5f8e98405e0d073a8cd8864b2473 /drivers/nvme/host | |
parent | 5389a1dfb39786df08d4f6a482bd2734b1b50e33 (diff) | |
download | linux-6f929702191deb12d3cef8d9b7e774c0ab54fe5b.tar.xz |
nvme: lightnvm: make MLC num_pairs little endian
According to the OpenChannel SSD interface specification the NAND flash
MLC page pairing information's number of page page pairings field is the
first two bytes in the MLC Page Pairing data structure. The hardware's
data structure itself is little endian so annotate it as such, like the
rest of lighnvm's data structures.
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host')
-rw-r--r-- | drivers/nvme/host/lightnvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index a0af055..97fe610 100644 --- a/drivers/nvme/host/lightnvm.c +++ b/drivers/nvme/host/lightnvm.c @@ -156,7 +156,7 @@ struct nvme_nvm_completion { #define NVME_NVM_LP_MLC_PAIRS 886 struct nvme_nvm_lp_mlc { - __u16 num_pairs; + __le16 num_pairs; __u8 pairs[NVME_NVM_LP_MLC_PAIRS]; }; |