History

mtd: nand: Fix data interface configuration logic

When changing from one data interface setting to another, one has to ensure a specific sequence which is described in the ONFI spec. One of these constraints is that the CE line has go high after a reset before a command can be sent with the new data interface setting, which is not guaranteed by the current implementation. Rework the nand_reset() function and all the call sites to make sure the CE line is asserted and released when required. Also make sure to actually apply the new data interface setting on the first die.

Boris Brezillon committed 10 years ago

Commit 73f907f1 parent ce93bed2 files · +43 −19Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mtd/nand.h+1−1
@@ -1184,7 +1184,7 @@ int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, · 1183 unmodified lines
1184 int page);1184 int page);
1185 1185
1186/* Reset and initialize a NAND device */1186/* Reset and initialize a NAND device */
1187int nand_reset(struct nand_chip *chip);1187int nand_reset(struct nand_chip *chip, int chipnr);
1188 1188
1189/* Free resources held by the NAND device */1189/* Free resources held by the NAND device */
1190void nand_cleanup(struct nand_chip *chip);1190void nand_cleanup(struct nand_chip *chip);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t