Piotr Sroka e4578af035 mtd: rawnand: cadence: fix the calculation of the avaialble OOB size
The value of cdns_chip->sector_count is not known at the moment
of the derivation of ecc_size, leading to a zero value. Fix
this by assigning ecc_size later in the code.

Fixes: ec4ba01e894d ("mtd: rawnand: Add new Cadence NAND driver to MTD subsystem")
Cc: stable@vger.kernel.org
Signed-off-by: Piotr Sroka <piotrs@cadence.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1581328530-29966-2-git-send-email-piotrs@cadence.com
2020-03-11 16:17:55 +01:00
..
2020-01-30 15:46:02 -08:00
2020-01-30 15:46:02 -08:00
2020-01-30 15:46:02 -08:00
2018-06-12 16:19:22 -07:00
2019-09-15 23:50:50 +02:00
2019-09-15 23:50:50 +02:00
2019-09-05 14:34:26 -04:00
2020-01-09 20:09:55 +01:00