03 Feb, 2008

1 commit

  • Patch for unlocking all Intel flash that has instant locking on power up.
    The patch has been tested on Intel M18, P30 and J3D Strata Flash.
    1. The automatic unlocking can be disabled for a particular partition
    in the map or the command line.
    a. For the bit mask in the map it should look like:
    .mask_flags = MTD_POWERUP_LOCK,
    b. For the command line parsing it should look like:
    mtdparts=0x80000(bootloader)lk
    2. This will only unlock parts with instant individual block locking.
    Intel parts with legacy unlocking will not be unlocked.

    Signed-off-by: Justin Treon
    Signed-off-by: Jared Hulbert
    Acked-by: Nicolas Pitre
    Signed-off-by: David Woodhouse

    Justin Treon
     

29 Jun, 2007

1 commit

  • Fix the sparse warnings generated by the implicit
    dependency of mtd_blkdevs.c and mtd_core.c for the
    two symbols mtd_table and mtd_table_mutex. This is
    done by adding an local header file mtdcore.h to
    define these (including the warning about the
    non-proliferation of these symbols).

    Signed-off-by: Ben Dooks
    Signed-off-by: David Woodhouse

    Ben Dooks
     

15 Feb, 2007

1 commit

  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

30 Nov, 2006

1 commit

  • While we're fixing up the newly-added symbol, change the neighbouring ones
    too, for consistency and also to reflect the author's interpretation of
    the GPL -- which is that _no_ non-GPL modules are permitted. The author
    always intended his code to be released under the GPL, and believes that
    any new interpretation of 'EXPORT_SYMBOL' as being any different from
    'EXPORT_SYMBOL_GPL' is entirely invalid; the GPL requires that _all_
    exports have the semantics of the new 'EXPORT_SYMBOL_GPL', which means the
    extra four characters are entirely redundant.

    But since those four extra characters trigger the check for illegal
    modules in a way that just EXPORT_SYMBOL does not, it's useful to change
    anyway. This action in no way indicates an admission that there is any
    legal distinction between the two states, and in particular does not
    indicate that the author believes that non-GPL modules may use symbols
    exported with EXPORT_SYMBOL alone.

    Signed-off-by: David Woodhouse

    David Woodhouse
     

29 Nov, 2006

3 commits

  • get_mtd_device() returns NULL in case of any failure. Teach it to return an
    error code instead. Fix all users as well.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • 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
     

22 Sep, 2006

1 commit

  • Introduce the MTD_STUPID_LOCK flag which indicates that the flash chip is
    always locked after power-up, so all sectors need to be unlocked before it
    is usable.

    If this flag is set, and the chip provides an unlock() operation,
    mtd_add_device will unlock the whole MTD device if it's writeable. This
    means that non-writeable partitions will stay locked.

    Set MTD_STUPID_LOCK in fixup_use_atmel_lock() so that these chips will work
    as expected.

    Signed-off-by: Håvard Skinnemoen
    Signed-off-by: Andrew Morton
    Signed-off-by: David Woodhouse

    Håvard Skinnemoen
     

01 Jul, 2006

1 commit


14 Jun, 2006

1 commit


25 May, 2006

1 commit


01 Apr, 2006

2 commits

  • Kill unneccessary ifdefs in mtdcore.c.

    Signed-off-by: Pavel Machek
    Cc: Thomas Gleixner
    Signed-off-by: Adrian Bunk
    Acked-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • Semaphore to mutex conversion.

    The conversion was generated via scripts, and the result was validated
    automatically via a script as well.

    Signed-off-by: Ingo Molnar
    Cc: Thomas Gleixner
    Acked-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     

07 Nov, 2005

2 commits


23 May, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds