]> git.baikalelectronics.ru Git - kernel.git/commitdiff
lightnvm: rename scrambler controller hint
authorJavier González <jg@lightnvm.io>
Sat, 15 Apr 2017 18:55:38 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:25 +0000 (10:06 -0600)
According to the OCSSD 1.2 specification, the 0x200 hint enables the
media scrambler for the read/write opcode, providing that the controller
has been correctly configured by the firmware. Rename the macro to
represent this meaning.

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 e11163f9b3b71e77b035f9eeb40347441415424f..eff7d1f312a8ab3c43149f005430d40a31da7cfb 100644 (file)
@@ -123,7 +123,7 @@ enum {
        /* NAND Access Modes */
        NVM_IO_SUSPEND          = 0x80,
        NVM_IO_SLC_MODE         = 0x100,
-       NVM_IO_SCRAMBLE_DISABLE = 0x200,
+       NVM_IO_SCRAMBLE_ENABLE  = 0x200,
 
        /* Block Types */
        NVM_BLK_T_FREE          = 0x0,