[RESEND PATCH 5.10.x] mtd: spinand: Fix incorrect parameters for on-die ECC