1. 20 12月, 2012 9 次提交
    • J
      watchdog: sp805_wdt.c: use clk_prepare_enable and clk_disable_unprepare · 63fbbc16
      Julia Lawall 提交于
      Clk_prepare_enable and clk_disable_unprepare combine clk_prepare and
      clk_enable, and clk_disable and clk_unprepare.  They make the code more
      concise, and ensure that clk_unprepare is called when clk_enable fails.
      
      A simplified version of the semantic patch that introduces calls to these
      functions is as follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression e;
      @@
      
      - clk_prepare(e);
      - clk_enable(e);
      + clk_prepare_enable(e);
      
      @@
      expression e;
      @@
      
      - clk_disable(e);
      - clk_unprepare(e);
      + clk_disable_unprepare(e);
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      63fbbc16
    • G
      watchdog: ath79_wdt: convert to use module_platform_driver · 8157becf
      Gabor Juhos 提交于
      This makes the code a bit smaller by getting rid of
      some boilerplate code.
      Signed-off-by: NGabor Juhos <juhosg@openwrt.org>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      8157becf
    • 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
    • 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 31 次提交