]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: marvell: Use correct logic for nand-keep-config
authorTony O'Brien <tony.obrien@alliedtelesis.co.nz>
Tue, 27 Sep 2022 02:47:28 +0000 (15:47 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 14:56:53 +0000 (23:56 +0900)
commit7abcb4d003b5d54370570586df9ddef51b058065
treea74045b21ec49620e7398a36f354877aa1e2b7b0
parent3fc3f7a31197cce6f29bfd8022f64b5bcc80ae12
mtd: rawnand: marvell: Use correct logic for nand-keep-config

commit 677c2fc83c04481191e0f6fecd0c9f8b8d50393f upstream.

Originally the absence of the marvell,nand-keep-config property caused
the setup_data_interface function to be provided. However when
setup_data_interface was moved into nand_controller_ops the logic was
unintentionally inverted. Update the logic so that only if the
marvell,nand-keep-config property is present the bootloader NAND config
kept.

Cc: stable@vger.kernel.org
Fixes: d83b19e03af2 ("mtd: rawnand: Move ->setup_data_interface() to nand_controller_ops")
Signed-off-by: Tony O'Brien <tony.obrien@alliedtelesis.co.nz>
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220927024728.28447-1-chris.packham@alliedtelesis.co.nz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/raw/marvell_nand.c