diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2015-11-16 17:53:13 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-09-15 17:47:56 +0300 |
commit | 477b0229ac9bc275f6f8d2c27a2d08b246fccd0e (patch) | |
tree | 578e6574229ac57723e64545a824a0aa50127340 /drivers/usb/wusbcore/wusbhc.h | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) | |
download | linux-477b0229ac9bc275f6f8d2c27a2d08b246fccd0e.tar.xz |
mtd: introduce the mtd_pairing_scheme concept
MLC and TLC NAND devices are using NAND cells exposing more than one bit,
but instead of attaching all the bits in a given cell to a single NAND
page, each bit is usually attached to a different page. This concept is
called 'page pairing', and has significant impacts on the flash storage
usage.
The main problem showed by these devices is that interrupting a page
program operation may not only corrupt the page we are programming
but also the page it is paired with, hence the need to expose to MTD
users the pairing scheme information.
The pairing APIs allows one to query pairing information attached to a
given page (here called wunit), or the other way around (the wunit
pointed by pairing information).
It also provides several helpers to help the conversion between absolute
offsets and wunits, and query the number of pairing groups.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/usb/wusbcore/wusbhc.h')
0 files changed, 0 insertions, 0 deletions