forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'for-linus-20120712' of git://git.infradead.org/linux-mtd
Pull late MTD fixes from David Woodhouse: - fix 'sparse warning fix' regression which totally breaks MXC NAND - fix GPMI NAND regression when used with UBI - update/correct sysfs documentation for new 'bitflip_threshold' field - fix nandsim build failure * tag 'for-linus-20120712' of git://git.infradead.org/linux-mtd: mtd: nandsim: don't open code a do_div helper mtd: ABI documentation: clarification of bitflip_threshold mtd: gpmi-nand: fix read page when reading to vmalloced area mtd: mxc_nand: use 32bit copy functions
- Loading branch information
Showing
4 changed files
with
46 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,13 +142,14 @@ KernelVersion: 3.4 | |
Contact: [email protected] | ||
Description: | ||
This allows the user to examine and adjust the criteria by which | ||
mtd returns -EUCLEAN from mtd_read(). If the maximum number of | ||
bit errors that were corrected on any single region comprising | ||
an ecc step (as reported by the driver) equals or exceeds this | ||
value, -EUCLEAN is returned. Otherwise, absent an error, 0 is | ||
returned. Higher layers (e.g., UBI) use this return code as an | ||
indication that an erase block may be degrading and should be | ||
scrutinized as a candidate for being marked as bad. | ||
mtd returns -EUCLEAN from mtd_read() and mtd_read_oob(). If the | ||
maximum number of bit errors that were corrected on any single | ||
region comprising an ecc step (as reported by the driver) equals | ||
or exceeds this value, -EUCLEAN is returned. Otherwise, absent | ||
an error, 0 is returned. Higher layers (e.g., UBI) use this | ||
return code as an indication that an erase block may be | ||
degrading and should be scrutinized as a candidate for being | ||
marked as bad. | ||
|
||
The initial value may be specified by the flash device driver. | ||
If not, then the default value is ecc_strength. | ||
|
@@ -167,7 +168,7 @@ Description: | |
block degradation, but high enough to avoid the consequences of | ||
a persistent return value of -EUCLEAN on devices where sticky | ||
bitflips occur. Note that if bitflip_threshold exceeds | ||
ecc_strength, -EUCLEAN is never returned by mtd_read(). | ||
ecc_strength, -EUCLEAN is never returned by the read operations. | ||
Conversely, if bitflip_threshold is zero, -EUCLEAN is always | ||
returned, absent a hard error. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters