24 Sep, 2016

1 commit

  • Check for watchdog_ops structures that are only stored in the ops field of
    a watchdog_device structure. This field is declared const, so watchdog_ops
    structures that have this property can be declared as const also.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @r disable optional_qualifier@
    identifier i;
    position p;
    @@
    static struct watchdog_ops i@p = { ... };

    @ok@
    identifier r.i;
    struct watchdog_device e;
    position p;
    @@
    e.ops = &i@p;

    @bad@
    position p != {r.p,ok.p};
    identifier r.i;
    struct watchdog_ops e;
    @@
    e@i@p

    @depends on !bad disable optional_qualifier@
    identifier r.i;
    @@
    static
    +const
    struct watchdog_ops i = { ... };
    //

    Signed-off-by: Julia Lawall
    Acked-by: Thierry Reding
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Julia Lawall
     

23 Nov, 2015

1 commit

  • If we need to restart the watchdog due to someone changing the timeout
    interval, stop the watchdog before restarting it. Otherwise, the new
    timeout doesn't seem to take.

    Signed-off-by: Andrew Chew
    Reviewed-by: Thierry Reding
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Andrew Chew
     

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
     

20 Oct, 2014

1 commit


31 Mar, 2014

1 commit

  • Add a driver for the hardware watchdogs in NVIDIA Tegra SoCs (Tegra30 and
    later). This driver will configure one watchdog timer that will reset the
    system in the case of a watchdog timeout.

    This driver binds to the nvidia,tegra30-timer device node and gets its
    register base from there.

    Signed-off-by: Andrew Chew
    Reviewed-by: Guenter Roeck
    Tested-by: Stephen Warren
    Reviewed-by: Stephen Warren
    Signed-off-by: Wim Van Sebroeck

    Andrew Chew