]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mtd: rawnand: denali: get ->setup_data_interface() working again
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 18 Jan 2019 05:30:38 +0000 (14:30 +0900)
committerBoris Brezillon <bbrezillon@kernel.org>
Fri, 18 Jan 2019 09:27:01 +0000 (10:27 +0100)
Commit d83b19e03af2 ("mtd: rawnand: Move ->setup_data_interface() to
nand_controller_ops") missed to invert the if-conditonal for denali.
Since then, the Denali NAND driver cannnot invoke setup_data_interface.

Fixes: d83b19e03af2 ("mtd: rawnand: Move ->setup_data_interface() to nand_controller_ops")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
drivers/mtd/nand/raw/denali.c

index eebac35304c6f2be99b7f551e5be2dc9b8789480..6e8edc9375dde933470541dc3123ae515965a2de 100644 (file)
@@ -1322,7 +1322,7 @@ int denali_init(struct denali_nand_info *denali)
        }
 
        /* clk rate info is needed for setup_data_interface */
-       if (denali->clk_rate && denali->clk_x_rate)
+       if (!denali->clk_rate || !denali->clk_x_rate)
                chip->options |= NAND_KEEP_TIMINGS;
 
        chip->legacy.dummy_controller.ops = &denali_controller_ops;