]> Gentwo Git Trees - linux/.git/commit
mtd: rawnand: sunxi: rework pattern found registers
authorRichard Genoud <richard.genoud@bootlin.com>
Tue, 28 Oct 2025 07:35:00 +0000 (08:35 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 28 Oct 2025 16:17:47 +0000 (17:17 +0100)
commit6fc2619af1eb6f5994a27e8617ac0911cdba81b8
tree06a89c533310b12b4343f13c77c3068b53f0c2a2
parentf53c74d0577426bcf604dd2f087da812812a6538
mtd: rawnand: sunxi: rework pattern found registers

On H6/H616, the register ECC_PAT_FOUND is at its own address, and not
part of ECC status register.
So, introduce the pattern found register offset in sunxi_nfc_caps, along
with its mask.

Also, introduce a non compile-time field_get() because FIELD_GET() and
u32_get_bits() don't work with non compile-time constant.

No functional change.

Link: https://lore.kernel.org/all/cover.1761588465.git.geert+renesas@glider.be
Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/sunxi_nand.c