1. 20 12月, 2012 14 次提交
    • L
      Merge tags 'dt-for-linus', 'gpio-for-linus' and 'spi-for-linus' of... · e3279550
      Linus Torvalds 提交于
      Merge tags 'dt-for-linus', 'gpio-for-linus' and 'spi-for-linus' of git://git.secretlab.ca/git/linux-2.6
      
      Pull devicetree, gpio and spi bugfixes from Grant Likely:
       "Device tree v3.8 bug fix:
         - Fixes an undefined struct device build error and a missing symbol
           export.
      
        GPIO device driver bug fixes:
         - gpio/mvebu-gpio: Make mvebu-gpio depend on OF_CONFIG
         - gpio/ich: Add missing spinlock init
      
        SPI device driver bug fixes:
         - Most of this is bug fixes to the core code and the sh-hspi and
           s3c64xx device drivers.
      
         - There is also a patch here to add DT support to the Atmel driver.
           This one should have been in the first round, but I missed it.
           It's a low risk change contained within a single driver and the
           Atmel maintainer has requested it."
      
      * tag 'dt-for-linus' of git://git.secretlab.ca/git/linux-2.6:
        of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS
        of: Fix export of of_find_matching_node_and_match()
      
      * tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6:
        gpio/mvebu-gpio: Make mvebu-gpio depend on OF_CONFIG
        gpio/ich: Add missing spinlock init
      
      * tag 'spi-for-linus' of git://git.secretlab.ca/git/linux-2.6:
        spi/sh-hspi: fix return value check in hspi_probe().
        spi: fix tegra SPI binding examples
        spi/atmel: add DT support
        of/spi: Fix SPI module loading by using proper "spi:" modalias prefixes.
        spi: Change FIFO flush operation and spi channel off
        spi: Keep chipselect assertion during one message
      e3279550
    • L
      Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux · dcd6a97d
      Linus Torvalds 提交于
      Pull drm bugfix from Dave Airlie:
       "Just a single urgent regression fix, seeing a few wierd behaviours I'd
        like not to persist."
      
      * 'drm-next' of git://people.freedesktop.org/~airlied/linux:
        drm/ttm: fix delayed ttm_bo_cleanup_refs_and_unlock delayed handling
      dcd6a97d
    • L
      Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random · 7005cd39
      Linus Torvalds 提交于
      Pull random updates from Ted Ts'o:
       "A few /dev/random improvements for the v3.8 merge window."
      
      * tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random:
        random: Mix cputime from each thread that exits to the pool
        random: prime last_data value per fips requirements
        random: fix debug format strings
        random: make it possible to enable debugging without rebuild
      7005cd39
    • G
      gpio/mvebu-gpio: Make mvebu-gpio depend on OF_CONFIG · bc1008cf
      Gregory CLEMENT 提交于
      When building without device tree support (for the mv78x00 SoCs for
      example), the build failed because of_irq_count is undeclared. However
      mvebu-gpio is not designed to build without device tree support. So
      make it depends on OF_CONFIG, remove the #ifdef OF_CONFIG line and the
      platform_device_id.
      
      Tested on RD-78x00-mASA, DB-78460-BP, DB-88F6710-BP-DDR3,
      DB-MV784MP-GP, Mirabox and OpenBlocks AX3.
      Signed-off-by: NGregory CLEMENT <gregory.clement@free-electrons.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      bc1008cf
    • J
      gpio/ich: Add missing spinlock init · d39a948f
      Jean Delvare 提交于
      As reported by CONFIG_DEBUG_SPINLOCK=y.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NPeter Tyser <ptyser@xes-inc.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      d39a948f
    • M
      drm/ttm: fix delayed ttm_bo_cleanup_refs_and_unlock delayed handling · 0953e76e
      Maarten Lankhorst 提交于
      Fix regression introduced by 85b144f8
      "drm/ttm: call ttm_bo_cleanup_refs with reservation and lru lock held, v3"
      
      Slowpath ttm_bo_cleanup_refs_and_unlock accidentally tried to increase
      refcount on &bo->sync_obj instead of bo->sync_obj.
      
      The compiler didn't complain since sync_obj_ref takes a void pointer,
      so it was still valid c.
      
      This could result in lockups, memory corruptions, and warnings like
      these when graphics card VRAM usage is high:
      
      ------------[ cut here ]------------
      WARNING: at include/linux/kref.h:42 radeon_fence_ref+0x2c/0x40()
      Hardware name: System Product Name
      Pid: 157, comm: X Not tainted 3.7.0-rc7-00520-g85b144f8-dirty #174
      Call Trace:
      [<ffffffff81058c84>] ? warn_slowpath_common+0x74/0xb0
      [<ffffffff8129273c>] ? radeon_fence_ref+0x2c/0x40
      [<ffffffff8125e95c>] ? ttm_bo_cleanup_refs_and_unlock+0x18c/0x2d0
      [<ffffffff8125f17c>] ? ttm_mem_evict_first+0x1dc/0x2a0
      [<ffffffff81264452>] ? ttm_bo_man_get_node+0x62/0xb0
      [<ffffffff8125f4ce>] ? ttm_bo_mem_space+0x28e/0x340
      [<ffffffff8125fb0c>] ? ttm_bo_move_buffer+0xfc/0x170
      [<ffffffff810de172>] ? kmem_cache_alloc+0xb2/0xc0
      [<ffffffff8125fc15>] ? ttm_bo_validate+0x95/0x110
      [<ffffffff8125ff7c>] ? ttm_bo_init+0x2ec/0x3b0
      [<ffffffff8129419a>] ? radeon_bo_create+0x18a/0x200
      [<ffffffff81293e80>] ? radeon_bo_clear_va+0x40/0x40
      [<ffffffff812a5342>] ? radeon_gem_object_create+0x92/0x160
      [<ffffffff812a575c>] ? radeon_gem_create_ioctl+0x6c/0x150
      [<ffffffff812a529f>] ? radeon_gem_object_free+0x2f/0x40
      [<ffffffff81246b60>] ? drm_ioctl+0x420/0x4f0
      [<ffffffff812a56f0>] ? radeon_gem_pwrite_ioctl+0x20/0x20
      [<ffffffff810f53a4>] ? do_vfs_ioctl+0x2e4/0x4e0
      [<ffffffff810e5588>] ? vfs_read+0x118/0x160
      [<ffffffff810f55ec>] ? sys_ioctl+0x4c/0xa0
      [<ffffffff810e5851>] ? sys_read+0x51/0xa0
      [<ffffffff814b0612>] ? system_call_fastpath+0x16/0x1b
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@canonical.com>
      Reported-by: NMarkus Trippelsdorf <markus@trippelsdorf.de>
      Acked-by: NPaul Menzel <paulepanter@users.sourceforge.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      0953e76e
    • L
      Merge tag 'xtensa-20121218' of git://github.com/czankel/xtensa-linux · 2f0bf925
      Linus Torvalds 提交于
      Pull Xtensa patchset from Chris Zankel:
       "This contains support of device trees, many fixes, and code clean-ups"
      
      * tag 'xtensa-20121218' of git://github.com/czankel/xtensa-linux: (33 commits)
        xtensa: don't try to build DTB when OF is disabled
        xtensa: set the correct ethernet address for xtfpga
        xtensa: clean up files to make them code-style compliant
        xtensa: provide endianness macro for sparse
        xtensa: fix RASID SR initialization
        xtensa: initialize CPENABLE SR when core has one
        xtensa: reset all timers on initialization
        Use for_each_compatible_node() macro.
        xtensa: add XTFPGA DTS
        xtensa: add support for the XTFPGA boards
        xtensa: add device trees support
        xtensa: add IRQ domains support
        xtensa: add U-Boot image support (uImage).
        xtensa: clean up boot make rules
        xtensa: fix mb and wmb definitions
        xtensa: add s32c1i-based spinlock implementations
        xtensa: add s32c1i-based bitops implementations
        xtensa: add s32c1i-based atomic ops implementations
        xtensa: add s32c1i sanity check
        xtensa: add trap_set_handler function
        ...
      2f0bf925
    • L
      Merge branch 'x86/nuke386' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1bd12c91
      Linus Torvalds 提交于
      Pull one final 386 removal patch from Peter Anvin.
      
      IRQ 13 FPU error handling is gone.  That was not one of the proudest
      moments in PC history.
      
      * 'x86/nuke386' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, 386 removal: Remove support for IRQ 13 FPU error reporting
      1bd12c91
    • L
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 3dbff0d5
      Linus Torvalds 提交于
      Pull small x86 fixes from Peter Anvin:
       "A collection of very small fixes, mostly pure documentation."
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, doc: Document that bootloader ID 4 is used also by iPXE
        x86, doc: Add a formal bootloader ID for kexec-tools
        x86, 8042: Enable A20 using KBC to fix S3 resume on some MSI laptops
      3dbff0d5
    • L
      Merge tag 'for-linus-20121219' of git://git.infradead.org/linux-mtd · ca2a88f5
      Linus Torvalds 提交于
      Pull MTD updates from David Woodhouse:
       - Various cleanups especially in NAND tests
       - Add support for NAND flash on BCMA bus
       - DT support for sh_flctl and denali NAND drivers
       - Kill obsolete/superceded drivers (fortunet, nomadik_nand)
       - Fix JFFS2 locking bug in ENOMEM failure path
       - New SPI flash chips, as usual
       - Support writing in 'reliable mode' for DiskOnChip G4
       - Debugfs support in nandsim
      
      * tag 'for-linus-20121219' of git://git.infradead.org/linux-mtd: (96 commits)
        mtd: nand: typo in nand_id_has_period() comments
        mtd: nand/gpio: use io{read,write}*_rep accessors
        mtd: block2mtd: throttle writes by calling balance_dirty_pages_ratelimited.
        mtd: nand: gpmi: reset BCH earlier, too, to avoid NAND startup problems
        mtd: nand/docg4: fix and improve read of factory bbt
        mtd: nand/docg4: reserve bb marker area in ecclayout
        mtd: nand/docg4: add support for writing in reliable mode
        mtd: mxc_nand: reorder part_probes to let cmdline override other sources
        mtd: mxc_nand: fix unbalanced clk_disable() in error path
        mtd: nandsim: Introduce debugfs infrastructure
        mtd: physmap_of: error checking to prevent a NULL pointer dereference
        mtg: docg3: potential divide by zero in doc_write_oob()
        mtd: bcm47xxnflash: writing support
        mtd: tests/read: initialize buffer for whole next page
        mtd: at91: atmel_nand: return bit flips for the PMECC read_page()
        mtd: fix recovery after failed write-buffer operation in cfi_cmdset_0002.c
        mtd: nand: onfi need to be probed in 8 bits mode
        mtd: nand: add NAND_BUSWIDTH_AUTO to autodetect bus width
        mtd: nand: print flash size during detection
        mted: nand_wait_ready timeout fix
        ...
      ca2a88f5
    • B
      watchdog: Fix disable/enable regression · 3935e895
      Bjørn Mork 提交于
      Commit 8d451690 ("watchdog: Fix CPU hotplug regression") causes an
      oops or hard lockup when doing
      
       echo 0 > /proc/sys/kernel/nmi_watchdog
       echo 1 > /proc/sys/kernel/nmi_watchdog
      
      and the kernel is booted with nmi_watchdog=1 (default)
      
      Running laptop-mode-tools and disconnecting/connecting AC power will
      cause this to trigger, making it a common failure scenario on laptops.
      
      Instead of bailing out of watchdog_disable() when !watchdog_enabled we
      can initialize the hrtimer regardless of watchdog_enabled status.  This
      makes it safe to call watchdog_disable() in the nmi_watchdog=0 case,
      without the negative effect on the enabled => disabled => enabled case.
      
      All these tests pass with this patch:
      - nmi_watchdog=1
        echo 0 > /proc/sys/kernel/nmi_watchdog
        echo 1 > /proc/sys/kernel/nmi_watchdog
      
      - nmi_watchdog=0
        echo 0 > /sys/devices/system/cpu/cpu1/online
      
      - nmi_watchdog=0
        echo mem > /sys/power/state
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=51661
      
      Cc: <stable@vger.kernel.org> # v3.7
      Cc: Norbert Warmuth <nwarmuth@t-online.de>
      Cc: Joseph Salisbury <joseph.salisbury@canonical.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3935e895
    • L
      Merge tag 'for-3.8-rc1' of git://gitorious.org/linux-pwm/linux-pwm · 74779e22
      Linus Torvalds 提交于
      Pull pwm changes from Thierry Reding:
       "A new driver has been added for the SPEAr platform and the
        TWL4030/6030 driver has been replaced by two drivers that control the
        regular PWMs and the PWM driven LEDs provided by the chips.
      
        The vt8500, tiecap, tiehrpwm, i.MX, LPC32xx and Samsung drivers have
        all been improved and the device tree bindings now support the PWM
        signal polarity."
      
      Fix up trivial conflicts due to __devinit/exit removal.
      
      * tag 'for-3.8-rc1' of git://gitorious.org/linux-pwm/linux-pwm: (21 commits)
        pwm: samsung: add missing s3c->pwm_id assignment
        pwm: lpc32xx: Set the chip base for dynamic allocation
        pwm: lpc32xx: Properly disable the clock on device removal
        pwm: lpc32xx: Fix the PWM polarity
        pwm: i.MX: eliminate build warning
        pwm: Export of_pwm_xlate_with_flags()
        pwm: Remove pwm-twl6030 driver
        pwm: New driver to support PWM driven LEDs on TWL4030/6030 series of PMICs
        pwm: New driver to support PWMs on TWL4030/6030 series of PMICs
        pwm: pwm-tiehrpwm: pinctrl support
        pwm: tiehrpwm: Add device-tree binding
        pwm: pwm-tiehrpwm: Adding TBCLK gating support.
        pwm: pwm-tiecap: pinctrl support
        pwm: tiecap: Add device-tree binding
        pwm: Add TI PWM subsystem driver
        pwm: Device tree support for PWM polarity
        pwm: vt8500: Ensure PWM clock is enabled during pwm_config
        pwm: vt8500: Fix build error
        pwm: spear: Staticize spear_pwm_config()
        pwm: Add SPEAr PWM chip driver support
        ...
      74779e22
    • J
      of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS · ab28698d
      Jonas Gorski 提交于
      Fixes the following warning:
      
      include/linux/of_platform.h:106:13: warning: 'struct device' declared
      inside parameter list [enabled by default]
      include/linux/of_platform.h:106:13: warning: its scope is only this
      definition or declaration, which is probably not what you want [enabled
      by default]
      Signed-off-by: NJonas Gorski <jogo@openwrt.org>
      Signed-off-by: NRob Herring <robherring2@gmail.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      ab28698d
    • L
      Merge tag 'for-v3.8-part2' of git://git.infradead.org/battery-2.6 · 5031a2a7
      Linus Torvalds 提交于
      Pull battery update, part 2, from Anton Vorontsov:
       "These are left overs that I didn't have time to review/apply before
        the merge window opened.  I didn't want to "spoil" the first pull
        request with these late patches, so they were not included:
      
         - A small patch for the RX51 OMAP board (Nokia N900 phone), the patch
           creates a battery monitor device instance, so that it can be
           probed.  It was acked by the OMAP maintainer;
      
         - A couple of late bug fixes for the charger-manager: corrects corner
           cases for the battery full handling."
      
      * tag 'for-v3.8-part2' of git://git.infradead.org/battery-2.6:
        charger-manager: Fix bug when check dropped voltage after fullbatt event
        charger-manager: Fix bug related to checking fully charged state of battery
        ARM: OMAP: rx51: Register platform device for rx51_battery
      5031a2a7
  2. 19 12月, 2012 26 次提交