Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1438265
| From | Matias Bjørling <m@bjorling.me> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 04/17] nvme: lightnvm: make MLC num_pairs little endian |
| Date | 2016-07-07 10:00 +0200 |
| Message-ID | <rSco3-3Zm-57@gated-at.bofh.it> (permalink) |
| References | <rSco1-3Zm-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Johannes Thumshirn <jthumshirn@suse.de>
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>
---
drivers/nvme/host/lightnvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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];
};
--
2.1.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[GIT PULL 00/17] LightNVM pull request for 4.8 Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 03/17] lightnvm: initialize ppa_addr in dev_to_generic_addr() Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 06/17] lightnvm: remove checkpatch warning for unsigned ints Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 12/17] lightnvm: remove unused lists from struct rrpc_block Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 13/17] lightnvm: remove _unlocked variant of [get/put]_blk Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 11/17] lightnvm: remove nested lock conflict with mm Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 15/17] lightnvm: fix lun offset calculation for mark blk Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 04/17] nvme: lightnvm: make MLC num_pairs little endian Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 02/17] lightnvm: add media manager mark_blk helper Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 05/17] lightnvm: Make functions not used by ouside static Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 09/17] lightnvm: rename gennvm and update description Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 17/17] lightnvm: make __nvm_submit_ppa static Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 16/17] lightnvm: make ppa_list const in nvm_set_rqd_list Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 07/17] lightnvm: fix checkpatch terse errors Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 10/17] lightnvm: move target mgmt into media mgr Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 14/17] lightnvm: make rrpc_map_page call nvm_get_blk outside locks Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 [PATCH 01/17] lightnvm: break the loop when rqd is not null Matias Bjørling <m@bjorling.me> - 2016-07-07 10:00 +0200 Re: [GIT PULL 00/17] LightNVM pull request for 4.8 Jens Axboe <axboe@kernel.dk> - 2016-07-07 17:00 +0200
csiph-web