mtd: rawnand: cadence: change bad block marker size
authorPiotr Sroka <piotrs@cadence.com>
Mon, 10 Feb 2020 09:55:27 +0000 (10:55 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 11 Mar 2020 15:17:55 +0000 (16:17 +0100)
commit9bf1903bed7a2e84f5a8deedb38f7e0ac5e8bfc6
tree4674c3f69323089b1e414d77fc13c2323bd3f0a8
parente4578af0354176ff6b4ae78b9998b4f479f7c31c
mtd: rawnand: cadence: change bad block marker size

Increase bad block marker size from one byte to two bytes.
Bad block marker is handled by skip bytes feature of HPNFC.
Controller expects this value to be an even number.

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-3-git-send-email-piotrs@cadence.com
drivers/mtd/nand/raw/cadence-nand-controller.c