Files
linux/Documentation/devicetree/bindings
Miquel Raynal 05e4fdd51a dt-bindings: mtd: gpmc: Fix the ECC bytes vs. OOB bytes equation
[ Upstream commit 778cb8e39f ]

"PAGESIZE / 512" is the number of ECC chunks.
"ECC_BYTES" is the number of bytes needed to store a single ECC code.
"2" is the space reserved by the bad block marker.

"2 + (PAGESIZE / 512) * ECC_BYTES" should of course be lower or equal
than the total number of OOB bytes, otherwise it won't fit.

Fix the equation by substituting s/>=/<=/.

Suggested-by: Ryan J. Barnett <ryan.barnett@collins.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/linux-mtd/20210610143945.3504781-1-miquel.raynal@bootlin.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 11:48:12 +02:00
..
2018-06-15 18:11:26 -03:00
2018-04-18 10:23:12 -05:00
2018-08-02 10:23:01 +02:00
2018-02-22 10:44:36 +08:00
2018-06-04 10:40:57 +02:00
2018-03-06 17:26:15 +01:00
2017-09-25 15:50:57 -07:00
2017-12-19 10:56:53 +01:00