Skip to content

Commit 8a6f4d3

Browse files
cpackham-atlnzmiquelraynal
authored andcommitted
mtd: rawnand: marvell: ensure timing values are written
When new timing values are calculated in marvell_nfc_setup_interface() ensure that they will be applied in marvell_nfc_select_target() by clearing the selected_chip pointer. Fixes: b252514 ("mtd: rawnand: marvell: Stop implementing ->select_chip()") Suggested-by: Miquel Raynal <[email protected]> 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 0ea923f commit 8a6f4d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/mtd/nand/raw/marvell_nand.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2457,6 +2457,12 @@ static int marvell_nfc_setup_interface(struct nand_chip *chip, int chipnr,
24572457
NDTR1_WAIT_MODE;
24582458
}
24592459

2460+
/*
2461+
* Reset nfc->selected_chip so the next command will cause the timing
2462+
* registers to be updated in marvell_nfc_select_target().
2463+
*/
2464+
nfc->selected_chip = NULL;
2465+
24602466
return 0;
24612467
}
24622468

0 commit comments

Comments
 (0)