17 Dec, 2009

1 commit

  • * git://git.infradead.org/mtd-2.6: (90 commits)
    jffs2: Fix long-standing bug with symlink garbage collection.
    mtd: OneNAND: Fix test of unsigned in onenand_otp_walk()
    mtd: cfi_cmdset_0002, fix lock imbalance
    Revert "mtd: move mxcnd_remove to .exit.text"
    mtd: m25p80: add support for Macronix MX25L4005A
    kmsg_dump: fix build for CONFIG_PRINTK=n
    mtd: nandsim: add support for 4KiB pages
    mtd: mtdoops: refactor as a kmsg_dumper
    mtd: mtdoops: make record size configurable
    mtd: mtdoops: limit the maximum mtd partition size
    mtd: mtdoops: keep track of used/unused pages in an array
    mtd: mtdoops: several minor cleanups
    core: Add kernel message dumper to call on oopses and panics
    mtd: add ARM pismo support
    mtd: pxa3xx_nand: Fix PIO data transfer
    mtd: nand: fix multi-chip suspend problem
    mtd: add support for switching old SST chips into QRY mode
    mtd: fix M29W800D dev_id and uaddr
    mtd: don't use PF_MEMALLOC
    mtd: Add bad block table overrides to Davinci NAND driver
    ...

    Fixed up conflicts (mostly trivial) in
    drivers/mtd/devices/m25p80.c
    drivers/mtd/maps/pcmciamtd.c
    drivers/mtd/nand/pxa3xx_nand.c
    kernel/printk.c

    Linus Torvalds
     

16 Dec, 2009

1 commit


10 Dec, 2009

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (42 commits)
    tree-wide: fix misspelling of "definition" in comments
    reiserfs: fix misspelling of "journaled"
    doc: Fix a typo in slub.txt.
    inotify: remove superfluous return code check
    hdlc: spelling fix in find_pvc() comment
    doc: fix regulator docs cut-and-pasteism
    mtd: Fix comment in Kconfig
    doc: Fix IRQ chip docs
    tree-wide: fix assorted typos all over the place
    drivers/ata/libata-sff.c: comment spelling fixes
    fix typos/grammos in Documentation/edac.txt
    sysctl: add missing comments
    fs/debugfs/inode.c: fix comment typos
    sgivwfb: Make use of ARRAY_SIZE.
    sky2: fix sky2_link_down copy/paste comment error
    tree-wide: fix typos "couter" -> "counter"
    tree-wide: fix typos "offest" -> "offset"
    fix kerneldoc for set_irq_msi()
    spidev: fix double "of of" in comment
    comment typo fix: sybsystem -> subsystem
    ...

    Linus Torvalds
     

30 Nov, 2009

4 commits

  • Signed-off-by: Mika Korhonen
    Reviewed-by: Adrian Hunter
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Mika Korhonen
     
  • Add support for multiblock erase command. OneNANDs (excluding Flex-OneNAND)
    are capable of simultaneous erase of up to 64 eraseblocks which is much faster.

    This changes the erase requests for regions covering multiple eraseblocks
    to be performed using multiblock erase.

    Signed-off-by: Mika Korhonen
    Reviewed-by: Adrian Hunter
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Mika Korhonen
     
  • Separate the actual execution of erase to a new function:
    onenand_block_by_block_erase(). This is done in preparation for
    the multiblock erase support.

    Signed-off-by: Mika Korhonen
    Reviewed-by: Adrian Hunter
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Mika Korhonen
     
  • What is OTP in OneNAND?
    The device includes,
    1. one block-sized OTP (One Time Programmable) area and
    2. user-controlled 1st block OTP(Block 0)
    that can be used to increase system security or to provide
    identification capabilities.

    What is done?
    In OneNAND, one block of the NAND Array is set aside as an OTP
    memory area, and 1st Block (Block 0) can be used as OTP area.
    This area, available to the user, can be configured and locked
    with secured user information. The OTP block can be read,
    programmed and locked using the same operations as any other NAND
    Flash Array memory block. After issuing an OTP-Lock, OTP block
    cannot be erased. OTP block is fully-guaranteed to be a good
    block.

    Why it is done?
    Locking the 1st Block OTP has the effect of a 'Write-protect' to
    guard against accidental re-programming of data stored in the 1st
    block and OTP Block.

    Which problem it solves?
    OTP support is provided in the existing implementation of
    OneNAND/Flex-OneNAND driver, but it is not working with OneNAND
    devices. Have observed the following in current OTP OneNAND Implmentation,
    1. DataSheet specific sequence to lock the OTP Area is not followed.
    2. Certain functions are quiet generic to cope with OTP specific activity.
    This patch re-implements OTP support for OneNAND device.

    How it is done?
    For all blocks, 8th word is available to the user.
    However, in case of OTP Block, 8th word of sector 0, page 0 is reserved as
    OTP Locking Bit area. Therefore, in case of OTP Block, user usage on this
    area is prohibited. Condition specific values are entered in the 8th word,
    sector0, page 0 of the OTP block during the process of issuing an OTP-Lock.
    The possible conditions are:
    1. Only 1st Block Lock
    2. Only OTP Block Lock
    3. Lock both the 1st Block and the OTP Block

    What Other feature additions have been done in this patch?
    This patch adds feature for:
    1. Only 1st Block Lock
    2. Lock both the 1st Block and the OTP Blocks

    Re-implemented OTP support for OneNAND
    Added following features to OneNAND
    1. Lock only 1st Block in OneNAND
    2. Lock BOTH 1st Block and OTP Block in OneNAND

    [comments were slightly tweaked by Artem]

    Signed-off-by: Amul Kumar Saha
    Reviewed-by: Adrian Hunter
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Amul Kumar Saha
     

09 Nov, 2009

1 commit


21 Oct, 2009

1 commit

  • Move the remaining headers under plat-omap/include/mach
    to plat-omap/include/plat. Also search and replace the
    files using these headers to include using the right path.

    This was done with:

    #!/bin/bash
    mach_dir_old="arch/arm/plat-omap/include/mach"
    plat_dir_new="arch/arm/plat-omap/include/plat"
    headers=$(cd $mach_dir_old && ls *.h)
    omap_dirs="arch/arm/*omap*/ \
    drivers/video/omap \
    sound/soc/omap"
    other_files="drivers/leds/leds-ams-delta.c \
    drivers/mfd/menelaus.c \
    drivers/mfd/twl4030-core.c \
    drivers/mtd/nand/ams-delta.c"

    for header in $headers; do
    old="#include

    Tony Lindgren
     

05 Oct, 2009

2 commits


20 Sep, 2009

1 commit

  • Remove the ARM dependency from the generic "onenand" platform device
    driver. This change makes the driver useful for other architectures as
    well. Needed for the SuperH kfr2r09 board.

    Apart from the obvious Kconfig bits, the most important change is the move
    away from ARM specific includes and platform data. Together with this
    change the only in-tree board code gets an update, and the driver name is
    also changed gracefully break potential out of tree drivers.

    The driver is also updated to allow NULL as platform data together with a
    few changes to make use of resource_size() and dev_name().

    Signed-off-by: Magnus Damm
    Cc: Paul Mundt
    Cc: Tony Lindgren
    Cc: Kyungmin Park
    Signed-off-by: Andrew Morton
    Signed-off-by: David Woodhouse

    Magnus Damm
     

04 Sep, 2009

2 commits

  • All of the onenand drivers depend on mtd partition support being compiled
    in, so just select it. Fixes up build breakage:

    drivers/built-in.o: In function `generic_onenand_remove':
    generic.c:(.devexit.text+0x80): undefined reference to `del_mtd_partitions'

    Reported-by: Randy Dunlap
    Signed-off-by: Paul Mundt
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Paul Mundt
     
  • Signed-off-by: Mika Korhonen
    Acked-by: Kyungmin Park
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Mika Korhonen
     

03 Aug, 2009

2 commits


23 Jun, 2009

1 commit

  • * git://git.infradead.org/mtd-2.6: (63 commits)
    mtd: OneNAND: Allow setting of boundary information when built as module
    jffs2: leaking jffs2_summary in function jffs2_scan_medium
    mtd: nand: Fix memory leak on txx9ndfmc probe failure.
    mtd: orion_nand: use burst reads with double word accesses
    mtd/nand: s3c6400 support for s3c2410 driver
    [MTD] [NAND] S3C2410: Use DIV_ROUND_UP
    [MTD] [NAND] S3C2410: Deal with unaligned lengths in S3C2440 buffer read/write
    [MTD] [NAND] S3C2410: Allow the machine code to get the BBT table from NAND
    [MTD] [NAND] S3C2410: Added a kerneldoc for s3c2410_nand_set
    mtd: physmap_of: Add multiple regions and concatenation support
    mtd: nand: max_retries off by one in mxc_nand
    mtd: nand: s3c2410_nand_setrate(): use correct macros for 2412/2440
    mtd: onenand: add bbt_wait & unlock_all as replaceable for some platform
    mtd: Flex-OneNAND support
    mtd: nand: add OMAP2/OMAP3 NAND driver
    mtd: maps: Blackfin async: fix memory leaks in probe/remove funcs
    mtd: uclinux: mark local stuff static
    mtd: uclinux: do not allow to be built as a module
    mtd: uclinux: allow systems to override map addr/size
    mtd: blackfin NFC: fix hang when using NAND on BF527-EZKITs
    ...

    Linus Torvalds
     

16 Jun, 2009

1 commit


06 Jun, 2009

4 commits

  • Add bbt_wait & unlock_all as replaceable for some platform such as
    s3c64xx s3c64xx has its own OneNAND controller and another interface

    Signed-off-by: Kyungmin Park
    Signed-off-by: Andrew Morton
    Signed-off-by: David Woodhouse

    Kyungmin Park
     
  • Add support for Samsung Flex-OneNAND devices.

    Flex-OneNAND combines SLC and MLC technologies into a single device.
    SLC area provides increased reliability and speed, suitable for storing
    code such as bootloader, kernel and root file system. MLC area
    provides high density and is suitable for storing user data.

    SLC and MLC regions can be configured through kernel parameter.

    [akpm@linux-foundation.org: export flexoand_region and onenand_addr]
    Signed-off-by: Rohit Hagargundgi
    Signed-off-by: Kyungmin Park
    Cc: Vishak G
    Signed-off-by: Andrew Morton
    Signed-off-by: David Woodhouse

    Rohit Hagargundgi
     
  • Add missing __devexit_p wrapper and no more mark shutdown with __devexit.
    Fixes build in configurations where devexit functions get discarded.

    Signed-off-by: Mika Korhonen
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Mika Korhonen
     
  • In addition to adding the Numonyx manufacturer code, this patch
    also ensures 'sync. write' is disabled when reading identification
    data - something that the Numonyx chip objects to, but the
    Samsung chip seems to ignore.

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

    Adrian Hunter
     

29 May, 2009

1 commit

  • This patch is to sync the core linux-omap PM code with mainline. This
    code has evolved and been used for a while the linux-omap tree, but
    the attempt here is to finally get this into mainline.

    Following this will be a series of patches from the 'PM branch' of the
    linux-omap tree to add full PM hardware support from the linux-omap
    tree.

    Much of this PM core code was written by Jouni Hogander with
    significant contributions from Paul Walmsley as well as many others
    from Nokia, Texas Instruments and linux-omap community.

    Signed-off-by: Jouni Hogander
    Cc: Paul Walmsley
    Signed-off-by: Kevin Hilman

    Kevin Hilman
     

07 Apr, 2009

1 commit

  • * git://git.infradead.org/mtd-2.6: (53 commits)
    [MTD] struct device - replace bus_id with dev_name(), dev_set_name()
    [MTD] [NOR] Fixup for Numonyx M29W128 chips
    [MTD] mtdpart: Make ecc_stats more realistic.
    powerpc/85xx: TQM8548: Update DTS file for multi-chip support
    powerpc: NAND: FSL UPM: document new bindings
    [MTD] [NAND] FSL-UPM: Add wait flags to support board/chip specific delays
    [MTD] [NAND] FSL-UPM: add multi chip support
    [MTD] [NOR] Add device parent info to physmap_of
    [MTD] [NAND] Add support for NAND on the Socrates board
    [MTD] [NAND] Add support for 4KiB pages.
    [MTD] sysfs support should not depend on CONFIG_PROC_FS
    [MTD] [NAND] Add parent info for CAFÉ controller
    [MTD] support driver model updates
    [MTD] driver model updates (part 2)
    [MTD] driver model updates
    [MTD] [NAND] move gen_nand's probe function to .devinit.text
    [MTD] [MAPS] move sa1100 flash's probe function to .devinit.text
    [MTD] fix use after free in register_mtd_blktrans
    [MTD] [MAPS] Drop now unused sharpsl-flash map
    [MTD] ofpart: Check name property to determine partition nodes.
    ...

    Manually fix trivial conflict in drivers/mtd/maps/Makefile

    Linus Torvalds
     

04 Apr, 2009

1 commit

  • Follow-on patch to the previous driver model patch for the MTD
    framework. This one makes various MTD drivers connect to the
    driver model tree, so /sys/devices/virtual/mtd/* nodes are no
    longer present ... mostly drivers used on boards I have handy.

    Based on a patch from Kay Sievers.

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

    David Brownell
     

25 Mar, 2009

1 commit

  • This patch fixes the bug reported in
    http://bugzilla.kernel.org/show_bug.cgi?id=11681.

    "Lots of device drivers register a 'struct device_driver' with
    the '.bus' member set to '&platform_bus_type'. This is wrong,
    since the platform_bus functions expect the 'struct device_driver'
    to be wrapped up in a 'struct platform_driver' which provides
    some additional callbacks (like suspend_late, resume_early).
    The effect may be that platform_suspend_late() uses bogus data
    outside the device_driver struct as a pointer pointer to the
    device driver's suspend_late() function or other hard to
    reproduce failures."(Lothar Wassmann)

    Signed-off-by: Ming Lei
    Acked-by: Henrique de Moraes Holschuh
    Acked-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Ming Lei
     

23 Mar, 2009

2 commits


15 Jan, 2009

1 commit


05 Jan, 2009

1 commit


23 Dec, 2008

1 commit


11 Dec, 2008

3 commits

  • Have most uses of OMAP_GPIO_IRQ() use gpio_to_irq() instead.
    Calls used for table initialization are left alone, at least
    this time around.

    (This patch is for code in both the OMAP tree and mainline.)

    Signed-off-by: David Brownell
    Signed-off-by: Tony Lindgren

    David Brownell
     
  • More switchover to the cross-platform GPIO interface:
    use gpio_direction_input(), not an OMAP-specific call.

    Signed-off-by: David Brownell
    Signed-off-by: Tony Lindgren

    David Brownell
     
  • This patch replaces some legacy OMAP GPIO calls with the "new" (not
    really, any more!) calls that work on most platforms.

    The calls addressed by this patch are the simple ones to get and set
    values ... for code that's in mainline, including the implementations
    of those calls.

    Except for the declarations and definitions of those calls, all of
    these changes were performed by a simple SED script. Plus, a few
    "if() set() else set()" branches were merged by hand.

    Signed-off-by: David Brownell
    Signed-off-by: Tony Lindgren

    David Brownell
     

10 Dec, 2008

1 commit

  • 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
     

26 Nov, 2008

1 commit


24 Nov, 2008

1 commit


21 Oct, 2008

1 commit


16 Sep, 2008

1 commit


15 Aug, 2008

1 commit