Skip to content

Commit ce10771

Browse files
Tony O'Brienmiquelraynal
authored andcommitted
mtd: rawnand: marvell: Use correct logic for nand-keep-config
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: [email protected] Fixes: 7a08dba ("mtd: rawnand: Move ->setup_data_interface() to nand_controller_ops") Signed-off-by: Tony O'Brien <[email protected]> Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 3ada713 commit ce10771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/raw/marvell_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2678,7 +2678,7 @@ static int marvell_nand_chip_init(struct device *dev, struct marvell_nfc *nfc,
26782678
chip->controller = &nfc->controller;
26792679
nand_set_flash_node(chip, np);
26802680

2681-
if (!of_property_read_bool(np, "marvell,nand-keep-config"))
2681+
if (of_property_read_bool(np, "marvell,nand-keep-config"))
26822682
chip->options |= NAND_KEEP_TIMINGS;
26832683

26842684
mtd = nand_to_mtd(chip);

0 commit comments

Comments
 (0)