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
11841184 int page);
11851185
11861186 /* Reset and initialize a NAND device */
1187−int nand_reset(struct nand_chip *chip);
1187+int nand_reset(struct nand_chip *chip, int chipnr);
11881188
11891189 /* Free resources held by the NAND device */
11901190 void 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