]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: atmel: Fix DT backward compatibility in pmecc.c
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 17 Jul 2017 18:20:08 +0000 (20:20 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 19 Jul 2017 20:04:13 +0000 (22:04 +0200)
commit082da601d071aa2644e4e3e3d22e75f2fcb0daee
tree9c7694c5d92e7a4aef14e140774ec151600338c9
parentc1e7f93cfc9ccbe5772b8d0eb3da04ab3bcc7881
mtd: nand: atmel: Fix DT backward compatibility in pmecc.c

PMECC caps extraction from old DT bindings is broken, thus leading to
erroneous EL registers offset, which in turn make HW ECC unusable on
sama5d2 when old bindings are in use.

Passing the NAND dev node instead of the NFC node to of_match_node()
solves the problem.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: 7a02889dc4ef ("mtd: nand: Cleanup/rework the atmel_nand driver")
Cc: <stable@vger.kernel.org>
Tested-by: Romain Izard <romain.izard.pro@gmail.com>
drivers/mtd/nand/atmel/pmecc.c