Skip to content
  1. Dec 20, 2012
    • Fabio Estevam's avatar
      watchdog: imx2_wdt: Select the driver via ARCH_MXC · 2d076bb8
      Fabio Estevam authored
      
      
      With device tree support in place, we should not use IMX_HAVE_PLATFORM_IMX2_WDT
      as a dependency for selecting the imx2_wdt driver.
      
      Use ARCH_MXC symbol instead, so that the driver can be even selected by a device-tree
      only SoC, such as i.MX6.
      
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
      Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      2d076bb8
    • devendra.aaru's avatar
      watchdog: cpu5wdt.c: add missing del_timer call · e09d9c3e
      devendra.aaru authored
      
      
      We do a setup_timer at init stage of the module, but we didn't
      de-activate the time using del_timer.
      
      Signed-off-by: default avatardevendra.aaru <devendra.aaru@gmail.com>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      e09d9c3e
    • Tom Mingarelli's avatar
      watchdog: hpwdt.c: Increase version string · e16cfb9d
      Tom Mingarelli authored
      
      
      Changing the version of the driver for all the latest patches being applied
      for kdump fixes.
      
      Signed-off-by: default avatarThomas Mingarelli <thomas.mingarelli@hp.com>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      e16cfb9d
    • Jarkko Nikula's avatar
      watchdog: Convert twl4030_wdt to watchdog core · b2c4e4b2
      Jarkko Nikula authored
      
      
      Convert the twl4030_wdt watchdog driver to watchdog core.
      
      While at there use devm_kzalloc and set the default timeout in order to be
      able test this driver with a simple shell script.
      
      Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@jollamobile.com>
      Tested-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      b2c4e4b2
    • Karicheri, Muralidharan's avatar
      davinci_wdt: preparation for switch to common clock framework · 5235f57a
      Karicheri, Muralidharan authored
      
      
      As a first step towards migrating davinci platforms to use common clock
      framework, replace all instances of clk_enable() with clk_prepare_enable()
      and clk_disable() with clk_disable_unprepare(). Until the platform is
      switched to use the CONFIG_HAVE_CLK_PREPARE Kconfig variable, this just
      adds a might_sleep() call and would work without any issues.
      
      This will make it easy later to switch to common clk based implementation
      of clk driver from DaVinci specific driver.
      
      Signed-off-by: default avatarMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      5235f57a
    • Julia Lawall's avatar
      watchdog: sp805_wdt.c: use clk_prepare_enable and clk_disable_unprepare · 63fbbc16
      Julia Lawall authored
      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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      63fbbc16
    • Gabor Juhos's avatar
      watchdog: ath79_wdt: convert to use module_platform_driver · 8157becf
      Gabor Juhos authored
      
      
      This makes the code a bit smaller by getting rid of
      some boilerplate code.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      8157becf
    • Linus Torvalds's avatar
      Merge tag 'xtensa-20121218' of git://github.com/czankel/xtensa-linux · 2f0bf925
      Linus Torvalds authored
      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
    • Linus Torvalds's avatar
      Merge branch 'x86/nuke386' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1bd12c91
      Linus Torvalds authored
      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
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 3dbff0d5
      Linus Torvalds authored
      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
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20121219' of git://git.infradead.org/linux-mtd · ca2a88f5
      Linus Torvalds authored
      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
    • Bjørn Mork's avatar
      watchdog: Fix disable/enable regression · 3935e895
      Bjørn Mork authored
      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: default avatarBjørn Mork <bjorn@mork.no>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3935e895
    • Linus Torvalds's avatar
      Merge tag 'for-3.8-rc1' of git://gitorious.org/linux-pwm/linux-pwm · 74779e22
      Linus Torvalds authored
      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
    • Linus Torvalds's avatar
      Merge tag 'for-v3.8-part2' of git://git.infradead.org/battery-2.6 · 5031a2a7
      Linus Torvalds authored
      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. Dec 19, 2012