19 Mar, 2011

3 commits

  • * 'linux-next' of git://git.infradead.org/ubifs-2.6: (25 commits)
    UBIFS: clean-up commentaries
    UBIFS: save 128KiB or more RAM
    UBIFS: allocate orphans scan buffer on demand
    UBIFS: allocate lpt dump buffer on demand
    UBIFS: allocate ltab checking buffer on demand
    UBIFS: allocate scanning buffer on demand
    UBIFS: allocate dump buffer on demand
    UBIFS: do not check data crc by default
    UBIFS: simplify UBIFS Kconfig menu
    UBIFS: print max. index node size
    UBIFS: handle allocation failures in UBIFS write path
    UBIFS: use max_write_size during recovery
    UBIFS: use max_write_size for write-buffers
    UBIFS: introduce write-buffer size field
    UBI: incorporate LEB offset information
    UBIFS: incorporate maximum write size
    UBI: provide LEB offset information
    UBI: incorporate maximum write size
    UBIFS: fix LEB number in printk
    UBIFS: restrict world-writable debugfs files
    ...

    Linus Torvalds
     
  • * 'linux-next' of git://git.infradead.org/ubi-2.6:
    UBI: make tests modes dynamic
    UBI: make self-checks dynamic
    UBI: make debugging messages dynamic
    UBI: remove UBI_IO_DEBUG macro
    UBI: kill debugging buffer
    UBI: allocate erase checking buffer on demand
    UBI: allocate write checking buffer on demand
    UBI: always re-read in case of read failures
    UBI: cleanup comments about corrupted PEBs
    UBI: add slab cache for ubi_scan_leb objects
    UBI: use raw mtd read function in debugging code
    UBI: try to reveal buggy MTD drivers
    UBI: add a commentary about allocating VID header buffer on stack
    UBI: cleanup LEB start calculations
    UBI: fix NOR erase preparation quirk

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (47 commits)
    doc: CONFIG_UNEVICTABLE_LRU doesn't exist anymore
    Update cpuset info & webiste for cgroups
    dcdbas: force SMI to happen when expected
    arch/arm/Kconfig: remove one to many l's in the word.
    asm-generic/user.h: Fix spelling in comment
    drm: fix printk typo 'sracth'
    Remove one to many n's in a word
    Documentation/filesystems/romfs.txt: fixing link to genromfs
    drivers:scsi Change printk typo initate -> initiate
    serial, pch uart: Remove duplicate inclusion of linux/pci.h header
    fs/eventpoll.c: fix spelling
    mm: Fix out-of-date comments which refers non-existent functions
    drm: Fix printk typo 'failled'
    coh901318.c: Change initate to initiate.
    mbox-db5500.c Change initate to initiate.
    edac: correct i82975x error-info reported
    edac: correct i82975x mci initialisation
    edac: correct commented info
    fs: update comments to point correct document
    target: remove duplicate include of target/target_core_device.h from drivers/target/target_core_hba.c
    ...

    Trivial conflict in fs/eventpoll.c (spelling vs addition)

    Linus Torvalds
     

18 Mar, 2011

2 commits

  • * 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6: (258 commits)
    omap: zoom: host should not pull up wl1271's irq line
    arm: plat-omap: iommu: fix request_mem_region() error path
    OMAP2+: Common CPU DIE ID reading code reads wrong registers for OMAP4430
    omap4: mux: Remove duplicate mux modes
    omap: iovmm: don't check 'da' to set IOVMF_DA_FIXED flag
    omap: iovmm: disallow mapping NULL address when IOVMF_DA_ANON is set
    omap2+: mux: Fix compile when CONFIG_OMAP_MUX is not selected
    omap4: board-omap4panda: Initialise the serial pads
    omap3: board-3430sdp: Initialise the serial pads
    omap4: board-4430sdp: Initialise the serial pads
    omap2+: mux: Add macro for configuring static with omap_hwmod_mux_init
    omap2+: mux: Remove the use of IDLE flag
    omap2+: Add separate list for dynamic pads to mux
    perf: add OMAP support for the new power events
    OMAP4: Add IVA OPP enteries.
    OMAP4: Update Voltage Rail Values for MPU, IVA and CORE
    OMAP4: Enable 800 MHz and 1 GHz MPU-OPP
    OMAP3+: OPP: Replace voltage values with Macros
    OMAP3: wdtimer: Fix CORE idle transition
    Watchdog: omap_wdt: add fine grain runtime-pm
    ...

    Fix up various conflicts in
    - arch/arm/mach-omap2/board-omap3evm.c
    - arch/arm/mach-omap2/clock3xxx_data.c
    - arch/arm/mach-omap2/usb-musb.c
    - arch/arm/plat-omap/include/plat/usb.h
    - drivers/usb/musb/musb_core.h

    Linus Torvalds
     
  • * 'devel-stable' of master.kernel.org:/home/rmk/linux-2.6-arm: (289 commits)
    davinci: DM644x EVM: register MUSB device earlier
    davinci: add spi devices on tnetv107x evm
    davinci: add ssp config for tnetv107x evm board
    davinci: add tnetv107x ssp platform device
    spi: add ti-ssp spi master driver
    mfd: add driver for sequencer serial port
    ARM: EXYNOS4: Implement Clock gating for System MMU
    ARM: EXYNOS4: Enhancement of System MMU driver
    ARM: EXYNOS4: Add support for gpio interrupts
    ARM: S5P: Add function to register gpio interrupt bank data
    ARM: S5P: Cleanup S5P gpio interrupt code
    ARM: EXYNOS4: Add missing GPYx banks
    ARM: S3C64XX: Fix section mismatch from cpufreq init
    ARM: EXYNOS4: Add keypad device to the SMDKV310
    ARM: EXYNOS4: Update clocks for keypad
    ARM: EXYNOS4: Update keypad base address
    ARM: EXYNOS4: Add keypad device helpers
    ARM: EXYNOS4: Add support for SATA on ARMLEX4210
    plat-nomadik: make GPIO interrupts work with cpuidle ApSleep
    mach-u300: define a dummy filter function for coh901318
    ...

    Fix up various conflicts in
    - arch/arm/mach-exynos4/cpufreq.c
    - arch/arm/mach-mxs/gpio.c
    - drivers/net/Kconfig
    - drivers/tty/serial/Kconfig
    - drivers/tty/serial/Makefile
    - drivers/usb/gadget/fsl_mxc_udc.c
    - drivers/video/Kconfig

    Linus Torvalds
     

17 Mar, 2011

1 commit

  • * 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits)
    tty: serial: altera_jtaguart: Add device tree support
    tty: serial: altera_uart: Add devicetree support
    dt: eliminate of_platform_driver shim code
    dt: Eliminate of_platform_{,un}register_driver
    dt/serial: Eliminate users of of_platform_{,un}register_driver
    dt/usb: Eliminate users of of_platform_{,un}register_driver
    dt/video: Eliminate users of of_platform_{,un}register_driver
    dt/net: Eliminate users of of_platform_{,un}register_driver
    dt/sound: Eliminate users of of_platform_{,un}register_driver
    dt/spi: Eliminate users of of_platform_{,un}register_driver
    dt: uartlite: merge platform and of_platform driver bindings
    dt: xilinx_hwicap: merge platform and of_platform driver bindings
    ipmi: convert OF driver to platform driver
    leds/leds-gpio: merge platform_driver with of_platform_driver
    dt/sparc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: move of_bus_type infrastructure to ibmebus
    drivercore/dt: add a match table pointer to struct device
    dt: Typo fix.
    altera_ps2: Add devicetree support
    ...

    Linus Torvalds
     

16 Mar, 2011

8 commits

  • Similarly to the debugging checks and message, make the test modes
    be dynamically selected via the "debug_tsts" module parameter or
    via the "/sys/module/ubi/parameters/debug_tsts" sysfs file. This
    is consistent with UBIFS as well.

    And now, since all the Kconfig knobs became dynamic, we can remove
    the Kconfig.debug file completely.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • This patch adds a possibility to dynamically switch UBI self-checks
    on and off, instead of toggling them compile-time from the configuration
    menu. This is much more flexible, and consistent with UBIFS, and this
    also simplifies UBI Kconfig menu and the code.

    This patch introduces two levels of self-checks - general, which
    includes all self-checks which are relatively fast, and I/O, which
    includes write-verify checks and erase-verify checks, which are
    relatively slow and involve flash I/O.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • This patch adds a possibility to dynamically select UBI debugging
    messages, instead of selecting them compile-time from the configuration
    menu. This is much more flexible, and consistent with UBIFS, and this
    also simplifies UBI Kconfig menu and the code.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • This additional little macro is used to print a bit more messages
    while scanning the media. However, we have the 'dbg_bld()' macro
    for this, so we better us 'dbg_bld()' and kill UBI_IO_DEBUG. This
    simplifies the code a tiny bit.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • This patch kills the 'ubi->dbg_peb_buf' debugging buffer and the
    associated mutex, because all users of this buffer are now gone.
    We are killing this buffer because we are going to switch to
    dynamic debugging control, just like in UBIFS, which means that
    CONFIG_MTD_UBI_DEBUG_PARANOID will be removed. In this case we'd
    end up always allocating 'ubi->dbg_peb_buf', which is rather large
    (128KiB or more), and this would be wasteful. Thus, we are just
    killing it.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • Instead of using pre-allocated 'ubi->dbg_peb_buf' buffer in
    'ubi_dbg_check_all_ff()', dynamically allocate it when needed. The
    intend is to get rid of the pre-allocated 'ubi->dbg_peb_buf' buffer
    completely. And the need for this arises because we want to change
    to dynamic debugging control instead of compile-time control, i.e.,
    we are going to kill the CONFIG_MTD_UBI_DEBUG_PARANOID Kconfig
    option, which would mean that 'ubi->dbg_peb_buf' is always allocated,
    which would be wasteful.

    Thus, we are getting rid of 'ubi->dbg_peb_buf', and this is a
    preparation for that.

    signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • Instead of using pre-allocated 'ubi->dbg_peb_buf' buffer in
    'ubi_dbg_check_write()', dynamically allocate it when needed. The
    intend is to get rid of the pre-allocated 'ubi->dbg_peb_buf' buffer
    completely. And the need for this arises because we want to change
    to dynamic debugging control instead of compile-time control, i.e.,
    we are going to kill the CONFIG_MTD_UBI_DEBUG_PARANOID Kconfig
    option, which would mean that 'ubi->dbg_peb_buf' is always allocated,
    which would be wasteful.

    Thus, we are getting rid of 'ubi->dbg_peb_buf', and this is a
    preparation for that.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • …nux-samsung into devel-stable

    Conflicts:
    arch/arm/mm/Kconfig

    Russell King
     

14 Mar, 2011

1 commit

  • * git://git.infradead.org/users/dwmw2/mtd-2.6.38:
    mtd: add "platform:" prefix for platform modalias
    mtd: mtd_blkdevs: fix double free on error path
    mtd: amd76xrom: fix oops at boot when resources are not available
    mtd: fix race in cfi_cmdset_0001 driver
    mtd: jedec_probe: initialise make sector erase command variable
    mtd: jedec_probe: Change variable name from cfi_p to cfi

    Linus Torvalds
     

11 Mar, 2011

6 commits

  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf (platform: prefix MODALIAS
    with "platform:"), the platform modalias is prefixed with "platform:".

    Signed-off-by: Axel Lin
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse
    Cc: stable@kernel.org

    Axel Lin
     
  • This one liner patch fixes double free that will occur if add_mtd_blktrans_dev
    fails. On failure it frees the input argument, but all its users also free it
    on error which is natural thing to do. Thus don't free it.

    All credit for finding that bug belongs to reporters of the bug in the android bugzilla
    http://code.google.com/p/android/issues/detail?id=13761

    Commit message tweaked by Artem.

    Signed-off-by: Maxim Levitsky
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse
    Cc: stable@kernel.org

    Maxim Levitsky
     
  • For some unknown reasons resources needed by amd76xrom driver can be
    unavailable. And instead of returning an error, the driver keeps going
    and crash the kernel. This patch fixes the problem by making the driver
    return -EBUSY if the resources are not available.

    Commit messages tweaked by Artem.

    Reported-by: Russell Whitaker
    Signed-off-by: Stanislaw Gruszka
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse
    Cc: stable@kernel.org

    Stanislaw Gruszka
     
  • As inval_cache_and_wait_for_operation() drop and reclaim the lock
    to invalidate the cache, some other thread may suspend the operation
    before reaching the for(;;) loop. Therefore the loop must start with
    checking the chip->state before reading status from the chip.

    Signed-off-by: Joakim Tjernlund
    Acked-by: Michael Cashwell
    Acked-by: Stefan Bigler
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse
    Cc: stable@kernel.org

    Joakim Tjernlund
     
  • In the commit 08968041bef437ec363623cd3218c2b083537ada
    (mtd: cfi_cmdset_0002: make sector erase command variable)
    introdused a field sector_erase_cmd. In the same commit initialisation
    of cfi->sector_erase_cmd made in cfi_chip_setup()
    (file drivers/mtd/chips/cfi_probe.c), so the CFI chip has no problem:

    ...
    cfi->cfi_mode = CFI_MODE_CFI;
    cfi->sector_erase_cmd = CMD(0x30);
    ...

    But for the JEDEC chips this initialisation is not carried out,
    so the JEDEC chips have sector_erase_cmd == 0.

    This patch adds the missing initialisation.

    Signed-off-by: Antony Pavlov
    Acked-by: Guillaume LECERF
    Signed-off-by: David Woodhouse
    CC: stable@kernel.org

    Antony Pavlov
     
  • In the following commit, we'll need to use the CMD() macro in order to
    fix the initialisation of the sector_erase_cmd field. That requires the
    local variable to be called 'cfi', so change it first in a simple patch.

    Signed-off-by: Antony Pavlov
    Acked-by: Guillaume LECERF
    Signed-off-by: David Woodhouse
    CC: stable@kernel.org

    Antony Pavlov
     

10 Mar, 2011

1 commit


08 Mar, 2011

3 commits

  • Provide the LEB offset information in the UBI device information data
    structure. This piece of information is required by UBIFS to find out
    what are the LEB offsets which are aligned to the max. write size.

    If LEB offset not aligned to max. write size, then UBIFS has to take
    this into account to write more optimally.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • Incorporate MTD write buffer size into UBI device information
    because UBIFS needs this field. UBI does not use it ATM, just
    provides to upper layers in 'struct ubi_device_info'.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • Move to SOC_SOC_IMX5X. Leave only places which prevent multi-soc
    using ARCH_MX5X.

    Signed-off-by: Richard Zhao
    Acked-by: Uwe Kleine-König
    Signed-off-by: Sascha Hauer

    Richard Zhao
     

03 Mar, 2011

1 commit


01 Mar, 2011

1 commit


22 Feb, 2011

1 commit


18 Feb, 2011

8 commits


17 Feb, 2011

2 commits


07 Feb, 2011

2 commits

  • When the read operation fails, UBI tries to re-read several times in
    a hope that one of the subsequent reads may succeed. However, currently
    UBI re-reads only if MTD failed to read all data, but does not re-reads
    if all the data were read, but with an integrity error (-EBADMSB). This
    patch makes UBI to always re-try reading.

    This should be useful for reading NAND pages with unstable bits -
    re-reading may help to get correct data.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • Just make them a bit more readable and explanatory.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy