On Wed, Oct 25, 2017 at 12:04:20PM -0700, Andrey Smirnov wrote:
> This driver provides access to RAVE SP watchdog functionality.
> 
> Cc: linux-kernel@vger.kernel.org
> Cc: linux-watch...@vger.kernel.org
> Cc: cphe...@gmail.com
> Cc: Lucas Stach <l.st...@pengutronix.de>
> Cc: Nikita Yushchenko <nikita.yo...@cogentembedded.com>
> Cc: Lee Jones <lee.jo...@linaro.org>
> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>
> Cc: Pavel Machek <pa...@ucw.cz>
> Cc: Andy Shevchenko <andy.shevche...@gmail.com>
> Cc: Guenter Roeck <li...@roeck-us.net>
> Cc: Rob Herring <r...@kernel.org>
> Cc: Johan Hovold <jo...@kernel.org>
> Signed-off-by: Nikita Yushchenko <nikita.yo...@cogentembedded.com>
> Signed-off-by: Andrey Smirnov <andrew.smir...@gmail.com>
> ---
> 
> 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