]> git.karo-electronics.de Git - linux-beck.git/commitdiff
lightnvm: add ECC error codes
authorJavier González <jg@lightnvm.io>
Mon, 28 Nov 2016 21:38:57 +0000 (22:38 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 29 Nov 2016 19:12:51 +0000 (12:12 -0700)
Add ECC error codes to enable the appropriate handling in the target.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/lightnvm.h

index 4480d1c6a1a5c34e6105d851c9b6b72fc0e4ef73..6b26a3289bced73f5480afb8ab844ffe1ca214c1 100644 (file)
@@ -107,6 +107,8 @@ enum {
        NVM_RSP_NOT_CHANGEABLE  = 0x1,
        NVM_RSP_ERR_FAILWRITE   = 0x40ff,
        NVM_RSP_ERR_EMPTYPAGE   = 0x42ff,
+       NVM_RSP_ERR_FAILECC     = 0x4281,
+       NVM_RSP_WARN_HIGHECC    = 0x4700,
 
        /* Device opcodes */
        NVM_OP_HBREAD           = 0x02,