25 May, 2020

1 commit

  • When watchdog_register_device() returns an error code,
    a pairing runtime PM usage counter decrement is needed
    to keep the counter balanced.

    Signed-off-by: Dinghao Liu
    Reviewed-by: Guenter Roeck
    Link: https://lore.kernel.org/r/20200521080141.24373-1-dinghao.liu@zju.edu.cn
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Dinghao Liu
     

09 Jul, 2019

1 commit


06 May, 2019

1 commit

  • Use devm_platform_ioremap_resource to reduce source code size,
    improve readability, and reduce the likelyhood of bugs.

    The conversion was done automatically with coccinelle using the
    following semantic patch.

    @r@
    identifier res, pdev;
    expression a;
    expression index;
    expression e;
    @@

    @depends on r@
    identifier r.res;
    @@
    - struct resource *res;
    ... when != res

    @@
    identifier res, pdev;
    expression index;
    expression a;
    @@
    - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, index);
    - a = devm_ioremap_resource(&pdev->dev, res);
    + a = devm_platform_ioremap_resource(pdev, index);

    Cc: Joel Stanley
    Cc: Nicolas Ferre
    Cc: Alexandre Belloni
    Cc: Florian Fainelli
    Cc: Linus Walleij
    Cc: Baruch Siach
    Cc: Keguang Zhang
    Cc: Vladimir Zapolskiy
    Cc: Kevin Hilman
    Cc: Matthias Brugger
    Cc: Avi Fishman
    Cc: Nancy Yuen
    Cc: Brendan Higgins
    Cc: Wan ZongShun
    Cc: Michal Simek
    Cc: Sylvain Lemieux
    Cc: Kukjin Kim
    Cc: Barry Song
    Cc: Orson Zhai
    Cc: Patrice Chotard
    Cc: Maxime Coquelin
    Cc: Maxime Ripard
    Cc: Chen-Yu Tsai
    Cc: Marc Gonzalez
    Cc: Thierry Reding
    Cc: Shawn Guo
    Signed-off-by: Guenter Roeck
    Acked-by: Alexandre Belloni
    Tested-by: Alexandre Belloni
    Acked-by: Joel Stanley
    Reviewed-by: Linus Walleij
    Acked-by: Maxime Ripard
    Acked-by: Michal Simek (cadence/xilinx wdts)
    Acked-by: Thierry Reding
    Reviewed-by: Florian Fainelli
    Acked-by: Patrice Chotard
    Acked-by: Vladimir Zapolskiy
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Guenter Roeck
     

07 Jul, 2018

1 commit

  • At over 4000 #includes, is the 9th most
    #included header file in the Linux kernel. It does not need
    , so drop that header and explicitly add
    to source files that need it.

    4146 #include

    After this patch, there are 225 files that use ,
    for a reduction of around 3900 times that
    does not have to be read & parsed.

    225 #include

    This patch was build-tested on 20 different arch-es.

    It also makes these drivers SubmitChecklist#1 compliant.

    Signed-off-by: Randy Dunlap
    Reported-by: kbuild test robot # drivers/media/platform/vimc/
    Reported-by: kbuild test robot # drivers/pinctrl/pinctrl-u300.c
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     

04 Mar, 2018

1 commit


28 Dec, 2015

2 commits

  • With the early_enable module parameter the watchdog can be started
    during driver probe time. If this is requested the bets are good that
    the timer is already running, so to narrow the gap where the timer is
    disabled only call the disable function when the timer shouldn't be
    started.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Uwe Kleine-König
     
  • omap_wdt_start calls pm_runtime_get_sync so dropping a reference just
    before calling omap_wdt_start doesn't make much sense. Moreover there is
    no point to use the synchronous variant of pm_runtime_put because the
    driver doesn't care if the clock is disabled before or after
    omap_wdt_probe returns.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Uwe Kleine-König
     

23 Nov, 2015

1 commit

  • Fix issue from two patches overlapping causing a kernel oops

    [ 3569.297449] Unable to handle kernel NULL pointer dereference at virtual address 00000088
    [ 3569.306272] pgd = dc894000
    [ 3569.309287] [00000088] *pgd=00000000
    [ 3569.313104] Internal error: Oops: 5 [#1] SMP ARM
    [ 3569.317986] Modules linked in: ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_security ip6table_raw ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_filter ip6_tables iptable_security iptable_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle musb_dsps cppi41 musb_hdrc phy_am335x udc_core phy_generic phy_am335x_control omap_sham omap_aes omap_rng omap_hwspinlock omap_mailbox hwspinlock_core musb_am335x omap_wdt at24 8250_omap leds_gpio cpufreq_dt smsc davinci_mdio mmc_block ti_cpsw cpsw_common ptp pps_core cpsw_ale davinci_cpdma omap_hsmmc omap_dma mmc_core i2c_dev
    [ 3569.386293] CPU: 0 PID: 1429 Comm: wdctl Not tainted 4.3.0-0.rc7.git0.1.fc24.armv7hl #1
    [ 3569.394740] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 3569.401179] task: dbd11a00 ti: dbaac000 task.ti: dbaac000
    [ 3569.406917] PC is at omap_wdt_get_timeleft+0xc/0x20 [omap_wdt]
    [ 3569.413106] LR is at watchdog_ioctl+0x3cc/0x42c
    [ 3569.417902] pc : [] lr : [] psr: 600f0013
    [ 3569.417902] sp : dbaadf18 ip : 00000003 fp : 7f5d3bbe
    [ 3569.430014] r10: 00000000 r9 : 00000003 r8 : bef21ab8
    [ 3569.435535] r7 : dbbc0f7c r6 : dbbc0f18 r5 : bef21ab8 r4 : 00000000
    [ 3569.442427] r3 : 00000000 r2 : 00000000 r1 : 8004570a r0 : dbbc0f18
    [ 3569.449323] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
    [ 3569.456858] Control: 10c5387d Table: 9c894019 DAC: 00000051
    [ 3569.462927] Process wdctl (pid: 1429, stack limit = 0xdbaac220)
    [ 3569.469179] Stack: (0xdbaadf18 to 0xdbaae000)
    [ 3569.473790] df00: bef21ab8 dbf60e38
    [ 3569.482441] df20: dc91b840 8004570a bef21ab8 c03988a4 dbaadf48 dc854000 00000000 dd313850
    [ 3569.491092] df40: ddf033b8 0000570a dc91b80b dbaadf3c dbf60e38 00000020 c0df9250 c0df6c48
    [ 3569.499741] df60: dc91b840 8004570a 00000000 dc91b840 dc91b840 8004570a bef21ab8 00000003
    [ 3569.508389] df80: 00000000 c03989d4 bef21b74 7f5d3bad 00000003 00000036 c020fcc4 dbaac000
    [ 3569.517037] dfa0: 00000000 c020fb00 bef21b74 7f5d3bad 00000003 8004570a bef21ab8 00000001
    [ 3569.525685] dfc0: bef21b74 7f5d3bad 00000003 00000036 00000001 00000000 7f5e4eb0 7f5d3bbe
    [ 3569.534334] dfe0: 7f5e4f10 bef21a3c 7f5d0a54 b6e97e0c a00f0010 00000003 00000000 00000000
    [ 3569.543038] [] (omap_wdt_get_timeleft [omap_wdt]) from [] (watchdog_ioctl+0x3cc/0x42c)
    [ 3569.553266] [] (watchdog_ioctl) from [] (do_vfs_ioctl+0x5bc/0x698)
    [ 3569.561648] [] (do_vfs_ioctl) from [] (SyS_ioctl+0x54/0x7c)
    [ 3569.569400] [] (SyS_ioctl) from [] (ret_fast_syscall+0x0/0x3c)
    [ 3569.577413] Code: e12fff1e e52de004 e8bd4000 e5903060 (e5933088)
    [ 3569.584089] ---[ end trace cec3039bd3ae610a ]---

    Cc: # v4.2+
    Signed-off-by: Peter Robinson
    Acked-by: Lars Poeschel
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Peter Robinson
     

10 Sep, 2015

1 commit

  • /sys/class/watchdog/watchdogn/device/modalias can help to identify the
    driver/module for a given watchdog node. However, many wdt devices do not
    set their parent and so, we do not see an entry for device in sysfs for
    such devices.

    This patch fixes parent of watchdog_device so that
    /sys/class/watchdog/watchdogn/device is populated.

    Exceptions: booke, diag288, octeon, softdog and w83627hf -- They do not
    have any parent. Not sure, how we can identify driver for these devices.

    Signed-off-by: Pratyush Anand
    Reviewed-by: Johannes Thumshirn
    Acked-by: Guenter Roeck
    Acked-by: H Hartley Sweeten
    Acked-by: Lee Jones
    Acked-by: Lubomir Rintel
    Acked-by: Maxime Coquelin
    Acked-by: Thierry Reding
    Acked-by: Viresh Kumar
    Acked-by: Linus Walleij
    Signed-off-by: Wim Van Sebroeck

    Pratyush Anand
     

01 Jul, 2015

1 commit

  • Add a early_enable module parameter to the omap_wdt that starts the
    watchdog on module insertion. The default value is 0 which does not
    start the watchdog - which also does not change the behavior if the
    parameter is not given.

    Signed-off-by: Lars Poeschel
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Lars Poeschel
     

22 Jun, 2015

5 commits

  • The omap watchdog hardware is able to read the watchdog timer counter
    register. This implements this functionality in the omap_wdt driver, so
    one is can read the time until the watchdog will trigger the reset in
    seconds using WDIOC_GETTIMELEFT.

    Signed-off-by: Lars Poeschel
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Lars Poeschel
     
  • The omap watchdog has the annoying behaviour that writes to most
    registers don't have any effect when the watchdog is already running.
    Quoting the AM335x reference manual:

    To modify the timer counter value (the WDT_WCRR register),
    prescaler ratio (the WDT_WCLR[4:2] PTV bit field), delay
    configuration value (the WDT_WDLY[31:0] DLY_VALUE bit field), or
    the load value (the WDT_WLDR[31:0] TIMER_LOAD bit field), the
    watchdog timer must be disabled by using the start/stop sequence
    (the WDT_WSPR register).

    Currently the timer is stopped in the .probe callback but still there
    are possibilities that yield to a situation where omap_wdt_start is
    entered with the timer running (e.g. when /dev/watchdog is closed
    without stopping and then reopened). In such a case programming the
    timeout silently fails!

    To circumvent this stop the timer before reprogramming.

    Assuming one of the first things the watchdog user does is setting the
    timeout explicitly nothing too bad should happen because this explicit
    setting works fine.

    Fixes: 7768a13c252a ("[PATCH] OMAP: Add Watchdog driver support")
    Signed-off-by: Uwe Kleine-König
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Uwe Kleine-König
     
  • Instead of using an over-long expression involving the ?: operator use
    an if and instead of an else branch rely on the fact that the data
    structure was allocated using devm_kzalloc. This also allows to put the
    used helper variable into a more local scope.

    There is no functional change.

    Signed-off-by: Uwe Kleine-König
    Reviewed-by: Felipe Balbi
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Uwe Kleine-König
     
  • This way only a single allocation is needed (per device). Also this
    simplifies the data structure used by the driver because there is no
    need anymore to link from one struct to the other (by means of
    watchdog_{set,get}_drvdata).

    Signed-off-by: Uwe Kleine-König
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Uwe Kleine-König
     
  • Instead of (partly) open coding watchdog_init_timeout to determine the
    inital timeout use the core function that exists for exactly this
    purpose.

    As a side effect the "timeout-sec" device-tree property is recognized now
    (though currently unused in the omap device trees).

    Signed-off-by: Uwe Kleine-König
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Uwe Kleine-König
     

18 Feb, 2015

1 commit


20 Oct, 2014

1 commit


31 Mar, 2014

2 commits

  • Use devm_ioremap_resource() in order to make the code simpler,
    and remove 'struct resource *mem' from 'struct omap_wdt_dev'
    and omap_wdt_probe(), resplectively. because the 'mem' variables
    are not used anymore. Also the redundant return value check of
    platform_get_resource() is removed, because the value is checked
    by devm_ioremap_resource().

    Signed-off-by: Jingoo Han
    Acked-by: Aaro Koskinen
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Jingoo Han
     
  • None of these files are actually using any __init type directives
    and hence don't need to include . Most are just a
    left over from __devinit and __cpuinit removal, or simply due to
    code getting copied from one driver to the next.

    Signed-off-by: Paul Gortmaker
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck
    Cc: linux-watchdog@vger.kernel.org

    Paul Gortmaker
     

18 Nov, 2013

2 commits

  • All OMAP IP blocks expect LE data, but CPU may operate in BE mode.
    Need to use endian neutral functions to read/write h/w registers.
    I.e instead of __raw_read[lw] and __raw_write[lw] functions code
    need to use read[lw]_relaxed and write[lw]_relaxed functions.
    If the first simply reads/writes register, the second will byteswap
    it if host operates in BE mode.

    Changes are trivial sed like replacement of __raw_xxx functions
    with xxx_relaxed variant.

    Signed-off-by: Victor Kamensky
    Signed-off-by: Taras Kondratiuk
    Acked-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Victor Kamensky
     
  • Use the wrapper function for retrieving the platform data instead of
    accessing dev->platform_data directly.

    Signed-off-by: Jingoo Han
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Jingoo Han
     

01 Mar, 2013

1 commit


02 Jan, 2013

1 commit

  • We forgot to delete this in the commit 4f4753d9 (watchdog: omap_wdt:
    convert to devm_ functions), and as a result the following compilation
    warning was introduced:

    drivers/watchdog/omap_wdt.c: In function 'omap_wdt_remove':
    drivers/watchdog/omap_wdt.c:299:19: warning: unused variable 'res' [-Wunused-variable]

    Signed-off-by: Aaro Koskinen
    Reviewed-by: Paul Walmsley
    Signed-off-by: Wim Van Sebroeck

    Aaro Koskinen
     

20 Dec, 2012

4 commits


14 Dec, 2012

1 commit

  • Pull ARM SoC power management and clock changes from Olof Johansson:
    "This branch contains a largeish set of updates of power management and
    clock setup. The bulk of it is for OMAP/AM33xx platforms, but also a
    few around hotplug/suspend/resume on Exynos.

    It includes a split-up of some of the OMAP clock data into separate
    files which adds to the diffstat, but gross delta is fairly reasonable."

    * tag 'pm-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (60 commits)
    ARM: OMAP: Move plat-omap/dma-omap.h to include/linux/omap-dma.h
    ASoC: OMAP: mcbsp fixes for enabling ARM multiplatform support
    watchdog: OMAP: fixup for ARM multiplatform support
    ARM: EXYNOS: Add flush_cache_all in suspend finisher
    ARM: EXYNOS: Remove scu_enable from cpuidle
    ARM: EXYNOS: Fix soft reboot hang after suspend/resume
    ARM: EXYNOS: Add support for rtc wakeup
    ARM: EXYNOS: fix the hotplug for Cortex-A15
    ARM: OMAP2+: omap_device: Correct resource handling for DT boot
    ARM: OMAP2+: hwmod: Add possibility to count hwmod resources based on type
    ARM: OMAP2+: hwmod: Add support for per hwmod/module context lost count
    ARM: OMAP2+: PRM: initialize some PRM functions early
    ARM: OMAP2+: voltage: fixup oscillator handling when CONFIG_PM=n
    ARM: OMAP4: USB: power down MUSB PHY during boot
    ARM: OMAP2+: clock: Cleanup !CONFIG_COMMON_CLK parts
    ARM: OMAP2xxx: clock: drop obsolete clock data
    ARM: OMAP2: clock: Cleanup !CONFIG_COMMON_CLK parts
    ARM: OMAP3+: DPLL: drop !CONFIG_COMMON_CLK sections
    ARM: AM33xx: clock: drop obsolete clock data
    ARM: OMAP3xxx: clk: drop obsolete clock data
    ...

    Linus Torvalds
     

13 Dec, 2012

1 commit

  • Pull ARM SoC cleanups on various subarchitectures from Olof Johansson:
    "Cleanup patches for various ARM platforms and some of their associated
    drivers. There's also a branch in here that enables Freescale i.MX to
    be part of the multiplatform support -- the first "big" SoC that is
    moved over (more multiplatform work comes in a separate branch later
    during the merge window)."

    Conflicts fixed as per Olof, including a silent semantic one in
    arch/arm/mach-omap2/board-generic.c (omap_prcm_restart() was renamed to
    omap3xxx_restart(), and a new user of the old name was added).

    * tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (189 commits)
    ARM: omap: fix typo on timer cleanup
    ARM: EXYNOS: Remove unused regs-mem.h file
    ARM: EXYNOS: Remove unused non-dt support for dwmci controller
    ARM: Kirkwood: Use hw_pci.ops instead of hw_pci.scan
    ARM: OMAP3: cm-t3517: use GPTIMER for system clock
    ARM: OMAP2+: timer: remove CONFIG_OMAP_32K_TIMER
    ARM: SAMSUNG: use devm_ functions for ADC driver
    ARM: EXYNOS: no duplicate mask/unmask in eint0_15
    ARM: S3C24XX: SPI clock channel setup is fixed for S3C2443
    ARM: EXYNOS: Remove i2c0 resource information and setting of device names
    ARM: Kirkwood: checkpatch cleanups
    ARM: Kirkwood: Fix sparse warnings.
    ARM: Kirkwood: Remove unused includes
    ARM: kirkwood: cleanup lsxl board includes
    ARM: integrator: use BUG_ON where possible
    ARM: integrator: push down SC dependencies
    ARM: integrator: delete static UART1 mapping
    ARM: integrator: delete SC mapping on the CP
    ARM: integrator: remove static CP syscon mapping
    ARM: integrator: remove static AP syscon mapping
    ...

    Linus Torvalds
     

01 Dec, 2012

1 commit


29 Nov, 2012

3 commits

  • CONFIG_HOTPLUG is going away as an option so __devexit is no
    longer needed.

    Signed-off-by: Bill Pemberton
    Cc: Wim Van Sebroeck
    Cc: Wan ZongShun
    Cc: Ben Dooks
    Cc: Kukjin Kim
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devinit is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Wim Van Sebroeck
    Cc: Wan ZongShun
    Cc: Ben Dooks
    Cc: Kukjin Kim
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Wim Van Sebroeck
    Cc: Wan ZongShun
    Cc: Ben Dooks
    Cc: Kukjin Kim
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     

09 Nov, 2012

1 commit

  • Previously the OMAP watchdog driver used a non-standard way to report
    the chip reset source via the GETBOOTSTATUS ioctl. This patch
    converts the driver to use the standard WDIOF_* flags for this
    purpose.

    This patch may break existing userspace code that uses the existing
    non-standard data format returned by the OMAP watchdog driver's
    GETBOOTSTATUS ioctl. To fetch detailed reset source information,
    userspace code will need to retrieve it directly from the CGRM or PRM
    drivers when those are completed.

    Previously, to fetch the reset source, the driver either read a
    register outside the watchdog IP block (OMAP1), or called a function
    exported directly from arch/arm/mach-omap2. Both approaches are
    broken. This patch also converts the driver to use a platform_data
    function pointer. This approach is temporary, and is due to the lack
    of drivers for the OMAP16xx+ Clock Generation and Reset Management IP
    block and the OMAP2+ Power and Reset Management IP block. Once
    drivers are available for those IP blocks, the watchdog driver can be
    converted to call exported functions from those drivers directly.
    At that point, the platform_data function pointer can be removed.

    In the short term, this patch is needed to allow the PRM code to be
    removed from arch/arm/mach-omap2 (it is being moved to a driver).

    This version integrates a fix from Jon Hunter
    that avoids a NULL pointer dereference in a DT-only boot, and integrates
    a patch commit message fix from Felipe Balbi .

    Signed-off-by: Paul Walmsley
    Cc: Wim Van Sebroeck
    Acked-by: Wim Van Sebroeck
    [paul@pwsan.com: integrated pdata fix from Jon Hunter]
    Cc: Jon Hunter
    [paul@pwsan.com: integrated changelog fix from Felipe Balbi]
    Cc: Felipe Balbi

    Paul Walmsley
     

13 Sep, 2012

1 commit

  • As the plat and mach includes need to disappear for single zImage work,
    we need to remove plat/hardware.h.

    Do this by splitting plat/hardware.h into omap1 and omap2+ specific files.

    The old plat/hardware.h already has omap1 only defines, so it gets moved
    to mach/hardware.h for omap1. For omap2+, we use the local soc.h
    that for now just includes the related SoC headers to keep this patch more
    readable.

    Note that the local soc.h still includes plat/cpu.h that can be dealt
    with in later patches. Let's also include plat/serial.h from common.h for
    all the board-*.c files. This allows making the include files local later
    on without patching these files again.

    Note that only minimal changes are done in this patch for the
    drivers/watchdog/omap_wdt.c driver to keep things compiling. Further
    patches are needed to eventually remove cpu_is_omap usage in the drivers.

    Also only minimal changes are done to sound/soc/omap/* to remove the
    unneeded includes and to define OMAP44XX_MCPDM_L3_BASE locally so there's
    no need to include omap44xx.h.

    While at it, also sort some of the includes in the standard way.

    Cc: linux-watchdog@vger.kernel.org
    Cc: alsa-devel@alsa-project.org
    Cc: Peter Ujfalusi
    Cc: Jarkko Nikula
    Cc: Liam Girdwood
    Acked-by: Wim Van Sebroeck
    Acked-by: Mark Brown
    Signed-off-by: Tony Lindgren

    Tony Lindgren
     

25 Jul, 2012

1 commit

  • Pull watchdog changes from Wim Van Sebroeck:
    - conversion of iTCO_wdt and orion_wdt to the generic watchdog API
    - uses module_platform_driver() for s3c2410_wdt
    - Adds support for Jetway JNF99 Motherboard
    - various fixes

    * git://www.linux-watchdog.org/linux-watchdog:
    watchdog: orion_wdt: Convert driver to watchdog core
    watchdog: s3c2410_wdt: Use module_platform_driver()
    watchdog: sch311x_wdt: Fix Polarity when starting watchdog
    Watchdog: OMAP: Fix the runtime pm code to avoid module getting stuck intransition state.
    watchdog: ie6xx_wdt: section mismatch in ie6xx_wdt_probe()
    watchdog: bcm63xx_wdt: fix driver section mismatch
    watchdog: iTCO_wdt.c: convert to watchdog core
    char/ipmi: remove local ioctl defines replaced by generic ones
    watchdog: xilinx: Read clock frequency directly from DT node
    watchdog: coh901327_wdt: use clk_prepare/unprepare
    watchdog: f71808e_wdt: Add support for Jetway JNF99 motherboard

    Linus Torvalds
     

23 Jul, 2012

1 commit

  • OMAP watchdog driver is adapted to runtime PM like a general device
    driver but it is not appropriate. It is causing couple of functional
    issues.

    1. On OMAP4 SYSCLK can't be gated, because of issue with WDTIMER2 module,
    which constantly stays in "in transition" state. Value of register
    CM_WKUP_WDTIMER2_CLKCTRL is always 0x00010000 in this case.
    Issue occurs immediately after first idle, when hwmod framework tries
    to disable WDTIMER2 functional clock - "wd_timer2_fck". After this
    module falls to "in transition" state, and SYSCLK gating is blocked.

    2. Due to runtime PM, watchdog timer may be completely disabled.
    In current code base watchdog timer is not disabled only because of
    issue 1. Otherwise state of WDTIMER2 module will be "Disabled", and there
    will be no interrupts from omap_wdt. In other words watchdog will not
    work at all.

    Watchdong is a special IP and it should not be disabled otherwise
    purpose of it itself is defeated. Watchdog functional clock should
    never be disabled. This patch updates the runtime PM handling in
    driver so that runtime PM is limited only during probe/shutdown
    and suspend/resume.

    The patch fixes issue 1 and 2

    Signed-off-by: Lokesh Vutla
    Acked-by: Santosh Shilimkar
    Signed-off-by: Wim Van Sebroeck

    Lokesh Vutla
     

09 Jul, 2012

1 commit


28 Mar, 2012

1 commit

  • Use the current logging styles.

    Make sure all output has a prefix.
    Add missing newlines.
    Remove now unnecessary PFX, NAME, and miscellaneous other #defines.
    Coalesce formats.

    Signed-off-by: Joe Perches
    Signed-off-by: Wim Van Sebroeck

    Joe Perches
     

27 Jan, 2012

1 commit

  • Currently the watchdog driver calls the pm_runtime_enable and never
    the disable. This may cause a warning when pm_runtime_enable
    checks for the count match.

    Also fixes the error

    /build/watchdog # insmod omap_wdt.ko
    [ 44.999389] omap_wdt omap_wdt: Unbalanced pm_runtime_enable!
    [ 45.011047] OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    /build/watchdog #

    Attempting to fix the same by calling pm_runtime_disable.

    Signed-off-by: Shubhrajyoti D
    Signed-off-by: Wim Van Sebroeck

    Shubhrajyoti D