]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
mtd: rawnand: pl353: Allow raw read/write only for on-die ecc flash parts
authorNaga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Mon, 8 Apr 2019 13:16:22 +0000 (18:46 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 9 Apr 2019 13:09:03 +0000 (15:09 +0200)
commitc97dbcd0ae1e3475b58d2e917a28178ab2c13f4c
tree1765c988d51ac8084a7bd8fedc5b3a505af534e6
parentb03299c5409a2ac99449f32e7d7a26653b34440c
mtd: rawnand: pl353: Allow raw read/write only for on-die ecc flash parts

When using HW-ECC, do not assign pl353_read_page_raw() and
pl353_write_page_raw() to ecc->write_page_raw and ecc->read_page_raw
hooks. if we do that read and writes will fail. We came to know this,
when running mtd_nandbiterrs test. This test case uses raw read/writes
when assigned but with hw-ecc, causes failures in data read
and writes.

Signed-off-by: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mtd/nand/raw/pl353_nand.c