diff options
author | Pekon Gupta <[email protected]> | 2014-05-06 09:41:32 +0530 |
---|---|---|
committer | Brian Norris <[email protected]> | 2014-05-20 16:35:31 -0700 |
commit | f034d87def51f026b735d1e2877e9387011b2ba3 (patch) | |
tree | 2c89a1214796d309856efbbcfe25372df9fc665d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 81d46c59550997ae17e441c0327ee92f7ba7dc6f (diff) |
mtd: eLBC NAND: fix subpage write support
As subpage write is enabled by default for all drivers, nand_write_subpage_hwecc
causes a crash if the driver did not register ecc->hwctl or ecc->calculate.
This behavior was introduced in
commit 837a6ba4f3b6d23026674e6af6b6849a4634fff9
"mtd: nand: subpage write support for hardware based ECC schemes".
This fixes a crash by emulating subpage write support by padding sub-page data
with 0xff on either sides to make it full page compatible.
Reported-by: Helmut Schaa <[email protected]>
Tested-by: Helmut Schaa <[email protected]>
Signed-off-by: Pekon Gupta <[email protected]>
Reviewed-by: Scott Wood <[email protected]>
Cc: <[email protected]> # 3.10.x+
Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions