diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-11-25 10:32:32 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-13 21:13:36 (GMT) |
commit | 865162031c4ea66ef6a5ce448c818ba3784ad2a4 (patch) | |
tree | 92a95aeb0f827d64abbe5284f694125290a05517 /drivers/amba | |
parent | f07cb3489cff38984a8df4d3a0fea5d0858c1eb0 (diff) | |
download | linux-865162031c4ea66ef6a5ce448c818ba3784ad2a4.tar.xz |
mtd: nand: mxc: Fix mxc_v1 ooblayout
commit 3bff08dffe3115a25ce04b95ea75f6d868572c60 upstream.
Commit a894cf6c5a82 ("mtd: nand: mxc: switch to mtd_ooblayout_ops")
introduced a bug in the OOB layout description. Even if the driver claims
that 3 ECC bytes are reserved to protect 512 bytes of data, it's actually
5 ECC bytes to protect 512+6 bytes of data (some OOB bytes are also
protected using extra ECC bytes).
Fix the mxc_v1_ooblayout_{free,ecc}() functions to reflect this behavior.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: a894cf6c5a82 ("mtd: nand: mxc: switch to mtd_ooblayout_ops")
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/amba')
0 files changed, 0 insertions, 0 deletions