]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: marvell: Clean the controller state before each operation
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:31:45 +0000 (10:31 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 25 Apr 2019 21:21:51 +0000 (23:21 +0200)
commitf31eb2e5e79d01022641fc9b1d7293f7fd94816b
treea9bb12d20f8a09169275d178a5b5c48c82851a87
parent1235a6abd75c8d03bfe89d705a905fafada5e45f
mtd: rawnand: marvell: Clean the controller state before each operation

Since the migration of the driver to stop using the legacy
->select_chip() hook, there is nothing deselecting the target anymore,
thus the selection is not forced at the next access. Ensure the ND_RUN
bit and the interrupts are always in a clean state.

Cc: Daniel Mack <daniel@zonque.org>
Cc: stable@vger.kernel.org
Fixes: f9299539f2c6d8 ("mtd: rawnand: marvell: Stop implementing ->select_chip()")
Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Daniel Mack <daniel@zonque.org>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/nand/raw/marvell_nand.c