On Wed, Oct 25, 2017 at 12:04:20PM -0700, Andrey Smirnov wrote:
> This driver provides access to RAVE SP watchdog functionality.
> 
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: Lucas Stach <[email protected]>
> Cc: Nikita Yushchenko <[email protected]>
> Cc: Lee Jones <[email protected]>
> Cc: Greg Kroah-Hartman <[email protected]>
> Cc: Pavel Machek <[email protected]>
> Cc: Andy Shevchenko <[email protected]>
> Cc: Guenter Roeck <[email protected]>
> Cc: Rob Herring <[email protected]>
> Cc: Johan Hovold <[email protected]>
> Signed-off-by: Nikita Yushchenko <[email protected]>
> Signed-off-by: Andrey Smirnov <[email protected]>
> ---
> 
> Guenter:
> 
> In our previous discussion you noted that relying on the state of
> WDOG_HW_RUNNING was not correct (that should be fixed now), please let
> me know if using watchdog_hw_running() the way I do in
> rave_sp_wdt_set_timeout() is incorrect as well.
> 

You could as well have used watchdog_active(), but it is ok.

> Thanks,
> Andrey Smirnov
> 
>  drivers/watchdog/Kconfig       |   7 +
>  drivers/watchdog/Makefile      |   1 +
>  drivers/watchdog/rave-sp-wdt.c | 343 
> +++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 351 insertions(+)
>  create mode 100644 drivers/watchdog/rave-sp-wdt.c
> 
[ ... ]

> +
> +static int rave_sp_wdt_probe(struct platform_device *pdev)
> +{
> +     struct device *dev = &pdev->dev;
> +     const struct of_device_id *id;
> +     struct watchdog_device *wdd;
> +     struct rave_sp_wdt *sp_wd;
> +     struct nvmem_cell *cell;
> +     __le16 timeout = 0;
> +     int ret;
> +
> +     id = of_match_device(rave_sp_wdt_variants, dev->parent);
> +     if (WARN_ON(!id))
> +             return -ENODEV;
> +

I could understand an error message here, but why a traceback ?

Guenter

Reply via email to