Showing results for 
Show  only  | Search instead for 
Did you mean: 
Registered: ‎08-24-2018

linux: pl353-nand: ERASE1 command always erases block 0 in Zynq-7000


Since the pl353-nand driver was rewritten using the new NAND exec_op framework, the NAND block 0 of my device gets erased at every boot.

I may have tracked down the problem. The commands issued by nand_erase_op in nand_base.c cause the driver to perform the actual erase of the desired block and a second additional erase of the block in the row calculation. See This line shall not be executed in the ERASE1 case. By comparing against the old driver and adding a special case here, I do not see the problem anymore.

Also, I reckon that this line shall read nfc_op.cmnds[1] as it is the END_CMD (or at least it was in the old driver). I may be wrong.

Thank you,

Diego H

0 Replies