aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorMatias Bjørling <m@bjorling.me>2016-02-19 13:56:58 +0100
committerJens Axboe <axboe@fb.com>2016-03-03 14:45:53 -0700
commitd5bdec8ddb9f5fac3b351bed463a7132f6ba907b (patch)
treeda9483977df6e4d457d0ea0687d2d990ed961184 /include/linux/lightnvm.h
parentlightnvm: fix up nonsensical configure overrun checking (diff)
downloadwireguard-linux-d5bdec8ddb9f5fac3b351bed463a7132f6ba907b.tar.xz
wireguard-linux-d5bdec8ddb9f5fac3b351bed463a7132f6ba907b.zip
lightnvm: fold get bb tbl when using dual/quad plane mode
When the media manager runs in dual or quad plane mode, lightnvm abstracts away plane specific commands. This poses a problem for get bad block table, as it reports bad blocks per plane, making the table either two or four times bigger than expected. Fold the bad block list before returning. Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r--include/linux/lightnvm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index d6750111e48e..7fa1838f7356 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -92,9 +92,9 @@ enum {
NVM_ADDRMODE_CHANNEL = 1,
/* Plane programming mode for LUN */
- NVM_PLANE_SINGLE = 0,
- NVM_PLANE_DOUBLE = 1,
- NVM_PLANE_QUAD = 2,
+ NVM_PLANE_SINGLE = 1,
+ NVM_PLANE_DOUBLE = 2,
+ NVM_PLANE_QUAD = 4,
/* Status codes */
NVM_RSP_SUCCESS = 0x0,