24 Mar, 2009

1 commit


10 Jan, 2009

1 commit

  • * git://git.infradead.org/mtd-2.6: (67 commits)
    [MTD] [MAPS] Fix printk format warning in nettel.c
    [MTD] [NAND] add cmdline parsing (mtdparts=) support to cafe_nand
    [MTD] CFI: remove major/minor version check for command set 0x0002
    [MTD] [NAND] ndfc driver
    [MTD] [TESTS] Fix some size_t printk format warnings
    [MTD] LPDDR Makefile and KConfig
    [MTD] LPDDR extended physmap driver to support LPDDR flash
    [MTD] LPDDR added new pfow_base parameter
    [MTD] LPDDR Command set driver
    [MTD] LPDDR PFOW definition
    [MTD] LPDDR QINFO records definitions
    [MTD] LPDDR qinfo probing.
    [MTD] [NAND] pxa3xx: convert from ns to clock ticks more accurately
    [MTD] [NAND] pxa3xx: fix non-page-aligned reads
    [MTD] [NAND] fix nandsim sched.h references
    [MTD] [NAND] alauda: use USB API functions rather than constants
    [MTD] struct device - replace bus_id with dev_name(), dev_set_name()
    [MTD] fix m25p80 64-bit divisions
    [MTD] fix dataflash 64-bit divisions
    [MTD] [NAND] Set the fsl elbc ECCM according the settings in bootloader.
    ...

    Fixed up trivial debug conflicts in drivers/mtd/devices/{m25p80.c,mtd_dataflash.c}

    Linus Torvalds
     

06 Jan, 2009

1 commit


10 Dec, 2008

2 commits

  • Signed-off-by: David Woodhouse

    David Woodhouse
     
  • MTD internal API presently uses 32-bit values to represent
    device size. This patch updates them to 64-bits but leaves
    the external API unchanged. Extending the external API
    is a separate issue for several reasons. First, no one
    needs it at the moment. Secondly, whether the implementation
    is done with IOCTLs, sysfs or both is still debated. Thirdly
    external API changes require the internal API to be accepted
    first.

    Note that although the MTD API will be able to support 64-bit
    device sizes, existing drivers do not and are not required
    to do so, although NAND base has been updated.

    In general, changing from 32-bit to 64-bit values cause little
    or no changes to the majority of the code with the following
    exceptions:
    - printk message formats
    - division and modulus of 64-bit values
    - NAND base support
    - 32-bit local variables used by mtdpart and mtdconcat
    - naughtily assuming one structure maps to another
    in MEMERASE ioctl

    Signed-off-by: Adrian Hunter
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Adrian Hunter
     

12 Aug, 2008

1 commit


30 Jul, 2008

1 commit

  • The current style for debug messages is to ensure they're always
    parsed by the compiler and then subjected to dead code removal.
    That way builds won't break only when debug options get enabled,
    which is common when they are stripped out early by CPP.

    This patch makes CONFIG_MTD_DEBUG adopt that convention.

    Signed-off-by: David Brownell
    Signed-off-by: David Woodhouse

    David Brownell
     

25 Jul, 2008

1 commit


22 Jul, 2008

1 commit


05 Jun, 2008

1 commit

  • Once upon a time, the MTD repository was using CVS.

    This patch therefore removes all usages of the no longer updated CVS
    keywords from the MTD code.

    This also includes code that printed them to the user.

    Signed-off-by: Adrian Bunk
    Signed-off-by: David Woodhouse

    Adrian Bunk
     

02 May, 2008

1 commit

  • Adding the ability to get a physical address from point() in addition
    to virtual address. This physical address is required for XIP of
    userspace code from flash.

    Signed-off-by: Jared Hulbert
    Reviewed-by: Jörn Engel
    Acked-by: Nicolas Pitre
    Acked-by: Greg Ungerer
    Signed-off-by: David Woodhouse

    Jared Hulbert
     

07 Feb, 2008

1 commit

  • MTDs are well suited for logging critical data and the mtdoops driver
    allows kernel panics/oops to be written to flash in a blackbox flight
    recorder fashion allowing better debugging and analysis of crashes.

    Any kernel oops in user context can be easily handled since the kernel
    continues as normal and any queued mtd writes are scheduled. Any kernel
    oops in interrupt context results in a panic and the delayed writes will
    not be scheduled however. The existing mtd->write function cannot be
    called in interrupt context so these messages can never be written to
    flash.

    This patch adds a panic_write function pointer that drivers can
    optionally implement which can be called in interrupt context. It is
    only intended to be called when its known the kernel is about to panic
    and we need to write to succeed. Since the kernel is not going to be
    running for much longer, this function can break locks and delay to
    ensure the write succeeds (but not sleep).

    Signed-off-by: Richard Purdie
    Signed-off-by: David Woodhouse

    Richard Purdie
     

21 Sep, 2007

1 commit


09 May, 2007

2 commits


03 Apr, 2007

1 commit


08 Mar, 2007

1 commit

  • During the MTD rework the oobavail parameter of mtd_info structure has become
    private. This is not quite correct in terms of integrity and logic. If we have
    means to write to OOB area, then we'd like to know upfront how many bytes out
    of OOB are spare per page to be able to adapt to specific cases.
    The patch inlined adds the public oobavail parameter.

    Signed-off-by: Vitaly Wool
    Signed-off-by: David Woodhouse

    Vitaly Wool
     

09 Feb, 2007

3 commits


29 Nov, 2006

5 commits

  • This patch adds get_device() and put_device() methods to the MTD description
    structure (struct mtd_info). These methods are called by MTD whenever the MTD
    device is get or put. They are needed when the underlying driver is something
    smarter then just flash chip driver, for example UBI.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • This patch adds one more function to the MTD interface to make it possible to
    open MTD devices by their names, not only numbers. This is very handy in many
    situations. Also, MTD device number depend on load order and may vary, while
    names are fixed.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • Many SLC NANDs support up to 4 writes at one NAND page. Add support
    of this feature.

    Signed-off-by: Artem Bityutskiy

    Thomas Gleixner
     
  • Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • As was discussed between Ricard Wanderlöf, David Woodhouse, Artem
    Bityutskiy and me, the current API for reading/writing OOB is confusing.

    The thing that introduces confusion is the need to specify ops.len
    together with ops.ooblen for reads/writes that concern only OOB not data
    area. So, ops.len is overloaded: when ops.datbuf != NULL it serves to
    specify the length of the data read, and when ops.datbuf == NULL, it
    serves to specify the full OOB read length.

    The patch inlined below is the slightly updated version of the previous
    patch serving the same purpose, but with the new Artem's comments taken
    into account.

    Artem, BTW, thanks a lot for your valuable input!

    Signed-off-by: Vitaly Wool
    Signed-off-by: David Woodhouse

    Vitaly Wool
     

29 Jun, 2006

1 commit

  • Fix some kernel-doc typos/spellos.
    Use kernel-doc syntax in places where it was almost used.
    Correct/add struct, struct field, and function param names where needed.

    Signed-off-by: Randy Dunlap
    Signed-off-by: David Woodhouse

    Randy Dunlap
     

21 Jun, 2006

1 commit

  • * git://git.infradead.org/hdrcleanup-2.6: (63 commits)
    [S390] __FD_foo definitions.
    Switch to __s32 types in joystick.h instead of C99 types for consistency.
    Add to headers included for userspace in
    Move inclusion of out of user scope in asm-x86_64/mtrr.h
    Remove struct fddi_statistics from user view in
    Move user-visible parts of drivers/s390/crypto/z90crypt.h to include/asm-s390
    Revert include/media changes: Mauro says those ioctls are only used in-kernel(!)
    Include and use __uXX types in
    Use __uXX types in , include too
    Remove private struct dx_hash_info from public view in
    Include and use __uXX types in
    Use __uXX types in for struct divert_blk et al.
    Use __u32 for elf_addr_t in , not u32. It's user-visible.
    Remove PPP_FCS from user view in , remove __P mess entirely
    Use __uXX types in user-visible structures in
    Don't use 'u32' in user-visible struct ip_conntrack_old_tuple.
    Use __uXX types for S390 DASD volume label definitions which are user-visible
    S390 BIODASDREADCMB ioctl should use __u64 not u64 type.
    Remove unneeded inclusion of from
    Fix private integer types used in V4L2 ioctls.
    ...

    Manually resolve conflict in include/linux/mtd/physmap.h

    Linus Torvalds
     

14 Jun, 2006

1 commit


30 May, 2006

1 commit

  • The raw read/write access to NAND (without ECC) has been changed in the
    NAND rework. Expose the new way - setting the file mode via ioctl - to
    userspace. Also allow to read out the ecc statistics information so userspace
    tools can see that bitflips happened and whether errors where correctable
    or not. Also expose the number of bad blocks for the partition, so nandwrite
    can check if the data fits into the parition before writing to it.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     

29 May, 2006

4 commits

  • Hopefully the last iteration on this!

    The handling of out of band data on NAND was accompanied by tons of fruitless
    discussions and halfarsed patches to make it work for a particular
    problem. Sufficiently annoyed by I all those "I know it better" mails and the
    resonable amount of discarded "it solves my problem" patches, I finally decided
    to go for the big rework. After removing the _ecc variants of mtd read/write
    functions the solution to satisfy the various requirements was to refactor the
    read/write _oob functions in mtd.

    The major change is that read/write_oob now takes a pointer to an operation
    descriptor structure "struct mtd_oob_ops".instead of having a function with at
    least seven arguments.

    read/write_oob which should probably renamed to a more descriptive name, can do
    the following tasks:

    - read/write out of band data
    - read/write data content and out of band data
    - read/write raw data content and out of band data (ecc disabled)

    struct mtd_oob_ops has a mode field, which determines the oob handling mode.

    Aside of the MTD_OOB_RAW mode, which is intended to be especially for
    diagnostic purposes and some internal functions e.g. bad block table creation,
    the other two modes are for mtd clients:

    MTD_OOB_PLACE puts/gets the given oob data exactly to/from the place which is
    described by the ooboffs and ooblen fields of the mtd_oob_ops strcuture. It's
    up to the caller to make sure that the byte positions are not used by the ECC
    placement algorithms.

    MTD_OOB_AUTO puts/gets the given oob data automaticaly to/from the places in
    the out of band area which are described by the oobfree tuples in the ecclayout
    data structre which is associated to the devicee.

    The decision whether data plus oob or oob only handling is done depends on the
    setting of the datbuf member of the data structure. When datbuf == NULL then
    the internal read/write_oob functions are selected, otherwise the read/write
    data routines are invoked.

    Tested on a few platforms with all variants. Please be aware of possible
    regressions for your particular device / application scenario

    Disclaimer: Any whining will be ignored from those who just contributed "hot
    air blurb" and never sat down to tackle the underlying problem of the mess in
    the NAND driver grown over time and the big chunk of work to fix up the
    existing users. The problem was not the holiness of the existing MTD
    interfaces. The problems was the lack of time to go for the big overhaul. It's
    easy to add more mess to the existing one, but it takes alot of effort to go
    for a real solution.

    Improvements and bugfixes are welcome!

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • Most of those macros are unused and the used ones just obfuscate
    the code. Remove them and fixup all users.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • The nand_oobinfo structure is not fitting the newer error correction
    demands anymore. Replace it by struct nand_ecclayout and fixup the users
    all over the place. Keep the nand_oobinfo based ioctl for user space
    compability reasons.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • The info structure for out of band data was copied into
    the mtd structure. Make it a pointer and remove the ability
    to set it from userspace. The position of ecc bytes is
    defined by the hardware and should not be changed by software.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     

25 May, 2006

1 commit


23 May, 2006

4 commits


14 May, 2006

1 commit


26 Apr, 2006

1 commit