Skip to content

Commit c4d28e3

Browse files
cpackham-atlnzmiquelraynal
authored andcommitted
mtd: rawnand: marvell: don't set the NAND frequency select
marvell_nfc_setup_interface() uses the frequency retrieved from the clock associated with the nand interface to determine the timings that will be used. By changing the NAND frequency select without reflecting this in the clock configuration this means that the timings calculated don't correctly meet the requirements of the NAND chip. This hasn't been an issue up to now because of a different bug that was stopping the timings being updated after they were initially set. Fixes: b252514 ("mtd: rawnand: marvell: Stop implementing ->select_chip()") Signed-off-by: Chris Packham <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 8a6f4d3 commit c4d28e3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/mtd/nand/raw/marvell_nand.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2900,10 +2900,6 @@ static int marvell_nfc_init(struct marvell_nfc *nfc)
29002900
regmap_update_bits(sysctrl_base, GENCONF_CLK_GATING_CTRL,
29012901
GENCONF_CLK_GATING_CTRL_ND_GATE,
29022902
GENCONF_CLK_GATING_CTRL_ND_GATE);
2903-
2904-
regmap_update_bits(sysctrl_base, GENCONF_ND_CLK_CTRL,
2905-
GENCONF_ND_CLK_CTRL_EN,
2906-
GENCONF_ND_CLK_CTRL_EN);
29072903
}
29082904

29092905
/* Configure the DMA if appropriate */

0 commit comments

Comments
 (0)