diff options
author | Boris BREZILLON <[email protected]> | 2015-09-14 10:41:03 +0200 |
---|---|---|
committer | Brian Norris <[email protected]> | 2015-09-21 13:36:42 -0700 |
commit | 03a0e8a7c5ea29b5c4e72dfd64900b47a8fb6f2d (patch) | |
tree | e48836e5e4d1fb71522b52aa2d9f4df3d101334d /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) |
mtd: nand: sunxi: fix OOB handling in ->write_xxx() functions
The USER_DATA register cannot be accessed using byte accessors on A13
SoCs, thus triggering a bug when using memcpy_toio on this register.
Declare an helper macros to convert an OOB buffer into a suitable
USER_DATA value and vice-versa.
This patch also fixes an error in the oob_required logic (some OOB data
are not written even if the user required it) by removing the
oob_required condition, which is perfectly valid since the core already
fill ->oob_poi with FFs when oob_required is false.
Signed-off-by: Boris Brezillon <[email protected]>
Cc: <[email protected]> # 3.19+
Fixes: 1fef62c1423b ("mtd: nand: add sunxi NAND flash controller support")
Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions