]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: move device L2P detection to core
authorMatias Bjørling <mb@lightnvm.io>
Tue, 9 Oct 2018 11:11:34 +0000 (13:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Oct 2018 14:25:06 +0000 (08:25 -0600)
commitd516dcf826e2efd71398b8d73716d73f1dc5bc60
treef16d906f4018ae89cf266c87f8e00666dc3f540a
parent4575ea310fbe4702d2edb3b2fdf36f69ab7a1495
lightnvm: move device L2P detection to core

A 1.2 device is able to manage the logical to physical mapping
table internally or leave it to the host.

A target only supports one of those approaches, and therefore must
check on initialization. Move this check to core to avoid each target
implement the check.

Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/core.c
drivers/lightnvm/pblk-init.c
include/linux/lightnvm.h