Skip to content

Commit c309bfa

Browse files
committed
Merge tag 'for-linus-20140808' of git://git.infradead.org/linux-mtd
Pull MTD updates from Brian Norris: "AMD-compatible CFI driver: - Support OTP programming for Micron M29EW family - Increase buffer write timeout, according to detected flash parameter info NAND - Add helpers for retrieving ONFI timing modes - GPMI: provide option to disable bad block marker swapping (required for Ka-On electronics platforms) SPI NOR - EON EN25QH128 support - Support new Flag Status Register (FSR) on a few Micron flash Common - New sysfs entries for bad block and ECC stats And a few miscellaneous refactorings, cleanups, and driver improvements" * tag 'for-linus-20140808' of git://git.infradead.org/linux-mtd: (31 commits) mtd: gpmi: make blockmark swapping optional mtd: gpmi: remove line breaks from error messages and improve wording mtd: gpmi: remove useless (void *) type casts and spaces between type casts and variables mtd: atmel_nand: NFC: support multiple interrupt handling mtd: atmel_nand: implement the nfc_device_ready() by checking the R/B bit mtd: atmel_nand: add NFC status error check mtd: atmel_nand: make ecc parameters same as definition mtd: nand: add ONFI timing mode to nand_timings converter mtd: nand: define struct nand_timings mtd: cfi_cmdset_0002: fix do_write_buffer() timeout error mtd: denali: use 8 bytes for READID command mtd/ftl: fix the double free of the buffers allocated in build_maps() mtd: phram: Fix whitespace issues mtd: spi-nor: add support for EON EN25QH128 mtd: cfi_cmdset_0002: Add support for locking OTP memory mtd: cfi_cmdset_0002: Add support for writing OTP memory mtd: cfi_cmdset_0002: Invalidate cache after entering/exiting OTP memory mtd: cfi_cmdset_0002: Add support for reading OTP mtd: spi-nor: add support for flag status register on Micron chips mtd: Account for BBT blocks when a partition is being allocated ...
2 parents 9e9ac89 + 2a500af commit c309bfa

File tree

27 files changed

+1032
-146
lines changed

27 files changed

+1032
-146
lines changed

Documentation/ABI/testing/sysfs-class-mtd

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,41 @@ Description:
184184

185185
It will always be a non-negative integer. In the case of
186186
devices lacking any ECC capability, it is 0.
187+
188+
What: /sys/class/mtd/mtdX/ecc_failures
189+
Date: June 2014
190+
KernelVersion: 3.17
191+
192+
Description:
193+
The number of failures reported by this device's ECC. Typically,
194+
these failures are associated with failed read operations.
195+
196+
It will always be a non-negative integer. In the case of
197+
devices lacking any ECC capability, it is 0.
198+
199+
What: /sys/class/mtd/mtdX/corrected_bits
200+
Date: June 2014
201+
KernelVersion: 3.17
202+
203+
Description:
204+
The number of bits that have been corrected by means of the
205+
device's ECC.
206+
207+
It will always be a non-negative integer. In the case of
208+
devices lacking any ECC capability, it is 0.
209+
210+
What: /sys/class/mtd/mtdX/bad_blocks
211+
Date: June 2014
212+
KernelVersion: 3.17
213+
214+
Description:
215+
The number of blocks marked as bad, if any, in this partition.
216+
217+
What: /sys/class/mtd/mtdX/bbt_blocks
218+
Date: June 2014
219+
KernelVersion: 3.17
220+
221+
Description:
222+
The number of blocks that are marked as reserved, if any, in
223+
this partition. These are typically used to store the in-flash
224+
bad block table (BBT).

Documentation/devicetree/bindings/mtd/gpmi-nand.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ Optional properties:
2525
discoverable or this property is not enabled,
2626
the software may chooses an implementation-defined
2727
ECC scheme.
28+
- fsl,no-blockmark-swap: Don't swap the bad block marker from the OOB
29+
area with the byte in the data area but rely on the
30+
flash based BBT for identifying bad blocks.
31+
NOTE: this is only valid in conjunction with
32+
'nand-on-flash-bbt'.
33+
WARNING: on i.MX28 blockmark swapping cannot be
34+
disabled for the BootROM in the FCB. Thus,
35+
partitions written from Linux with this feature
36+
turned on may not be accessible by the BootROM
37+
code.
2838

2939
The device tree may optionally contain sub-nodes describing partitions of the
3040
address space. See partition.txt for more detail.

0 commit comments

Comments
 (0)