mtd: spinand: macronix: Fix ECC Status Read
authorEmil Lenngren <emil.lenngren@gmail.com>
Thu, 20 Dec 2018 12:46:58 +0000 (13:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:20:50 +0000 (12:20 +0200)
commit39e597d283b08e2130d47b1a5c65c0886754e28d
tree0968b7263f9c16c8223606e2b45093b7dc0aa0cc
parent2488b9f9afde0ed35478e73aa5ec34328ba01fbd
mtd: spinand: macronix: Fix ECC Status Read

commit f4cb4d7b46f6409382fd981eec9556e1f3c1dc5d upstream.

The datasheet specifies the upper four bits are reserved.
Testing on real hardware shows that these bits can indeed be nonzero.

Signed-off-by: Emil Lenngren <emil.lenngren@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/spi/macronix.c