]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
lightnvm: Add CRC read error
authorJavier González <jg@lightnvm.io>
Tue, 31 Jan 2017 12:17:18 +0000 (13:17 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 31 Jan 2017 15:32:13 +0000 (08:32 -0700)
Let the host differentiate between a read error and a CRC check error on
the device side.

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

index 17cd454f0d87e6f0164de89411d1a5440cefa0c2..bc282d26017ade6e9ce137c1075e356ae1a0f2a4 100644 (file)
@@ -107,6 +107,7 @@ enum {
        NVM_RSP_ERR_FAILWRITE   = 0x40ff,
        NVM_RSP_ERR_EMPTYPAGE   = 0x42ff,
        NVM_RSP_ERR_FAILECC     = 0x4281,
+       NVM_RSP_ERR_FAILCRC     = 0x4004,
        NVM_RSP_WARN_HIGHECC    = 0x4700,
 
        /* Device opcodes */