Re: [PATCH v3 1/7] watchdog: sama5d4: make use of timeout-secs provided in devicetree
On Fri, Mar 16, 2018 at 06:56:27PM -0700, Guenter Roeck wrote: > On 03/16/2018 06:37 AM, Marcus Folkesson wrote: > > Hi, > > > > Am I supposed to do something more to make this patchset picked up? > > > > Did you check linux-next ? :-) Thank you /Marcus > > Guenter > signature.asc Description: PGP signature
Re: [PATCH v3 1/7] watchdog: sama5d4: make use of timeout-secs provided in devicetree
On Fri, Mar 16, 2018 at 06:56:27PM -0700, Guenter Roeck wrote: > On 03/16/2018 06:37 AM, Marcus Folkesson wrote: > > Hi, > > > > Am I supposed to do something more to make this patchset picked up? > > > > Did you check linux-next ? :-) Thank you /Marcus > > Guenter > signature.asc Description: PGP signature
Re: [PATCH v3 1/7] watchdog: sama5d4: make use of timeout-secs provided in devicetree
On 03/16/2018 06:37 AM, Marcus Folkesson wrote: Hi, Am I supposed to do something more to make this patchset picked up? Did you check linux-next ? Guenter Thanks, Marcus Folkesson On Sun, Feb 11, 2018 at 09:08:41PM +0100, Marcus Folkesson wrote: watchdog_init_timeout() will allways pick timeout_param since it defaults to a valid timeout. Following best practice described in Documentation/watchdog/watchdog-kernel-api.txt to make use of the parameter logic. Signed-off-by: Marcus Folkesson--- Notes: v3: - Use wdd->timeout instead of wdt_timeout when print out timout in probe function. drivers/watchdog/sama5d4_wdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c index 0ae947c3d7bc..255169916dbb 100644 --- a/drivers/watchdog/sama5d4_wdt.c +++ b/drivers/watchdog/sama5d4_wdt.c @@ -33,7 +33,7 @@ struct sama5d4_wdt { unsigned long last_ping; }; -static int wdt_timeout = WDT_DEFAULT_TIMEOUT; +static int wdt_timeout; static bool nowayout = WATCHDOG_NOWAYOUT; module_param(wdt_timeout, int, 0); @@ -212,7 +212,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) return -ENOMEM; wdd = >wdd; - wdd->timeout = wdt_timeout; + wdd->timeout = WDT_DEFAULT_TIMEOUT; wdd->info = _wdt_info; wdd->ops = _wdt_ops; wdd->min_timeout = MIN_WDT_TIMEOUT; @@ -273,7 +273,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) platform_set_drvdata(pdev, wdt); dev_info(>dev, "initialized (timeout = %d sec, nowayout = %d)\n", -wdt_timeout, nowayout); +wdd->timeout, nowayout); return 0; } -- 2.15.1
Re: [PATCH v3 1/7] watchdog: sama5d4: make use of timeout-secs provided in devicetree
On 03/16/2018 06:37 AM, Marcus Folkesson wrote: Hi, Am I supposed to do something more to make this patchset picked up? Did you check linux-next ? Guenter Thanks, Marcus Folkesson On Sun, Feb 11, 2018 at 09:08:41PM +0100, Marcus Folkesson wrote: watchdog_init_timeout() will allways pick timeout_param since it defaults to a valid timeout. Following best practice described in Documentation/watchdog/watchdog-kernel-api.txt to make use of the parameter logic. Signed-off-by: Marcus Folkesson --- Notes: v3: - Use wdd->timeout instead of wdt_timeout when print out timout in probe function. drivers/watchdog/sama5d4_wdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c index 0ae947c3d7bc..255169916dbb 100644 --- a/drivers/watchdog/sama5d4_wdt.c +++ b/drivers/watchdog/sama5d4_wdt.c @@ -33,7 +33,7 @@ struct sama5d4_wdt { unsigned long last_ping; }; -static int wdt_timeout = WDT_DEFAULT_TIMEOUT; +static int wdt_timeout; static bool nowayout = WATCHDOG_NOWAYOUT; module_param(wdt_timeout, int, 0); @@ -212,7 +212,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) return -ENOMEM; wdd = >wdd; - wdd->timeout = wdt_timeout; + wdd->timeout = WDT_DEFAULT_TIMEOUT; wdd->info = _wdt_info; wdd->ops = _wdt_ops; wdd->min_timeout = MIN_WDT_TIMEOUT; @@ -273,7 +273,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) platform_set_drvdata(pdev, wdt); dev_info(>dev, "initialized (timeout = %d sec, nowayout = %d)\n", -wdt_timeout, nowayout); +wdd->timeout, nowayout); return 0; } -- 2.15.1
Re: [PATCH v3 1/7] watchdog: sama5d4: make use of timeout-secs provided in devicetree
Hi, Am I supposed to do something more to make this patchset picked up? Thanks, Marcus Folkesson On Sun, Feb 11, 2018 at 09:08:41PM +0100, Marcus Folkesson wrote: > watchdog_init_timeout() will allways pick timeout_param since it > defaults to a valid timeout. > > Following best practice described in > Documentation/watchdog/watchdog-kernel-api.txt to make use of > the parameter logic. > > Signed-off-by: Marcus Folkesson> --- > > Notes: > v3: > - Use wdd->timeout instead of wdt_timeout when print out > timout in probe function. > > drivers/watchdog/sama5d4_wdt.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c > index 0ae947c3d7bc..255169916dbb 100644 > --- a/drivers/watchdog/sama5d4_wdt.c > +++ b/drivers/watchdog/sama5d4_wdt.c > @@ -33,7 +33,7 @@ struct sama5d4_wdt { > unsigned long last_ping; > }; > > -static int wdt_timeout = WDT_DEFAULT_TIMEOUT; > +static int wdt_timeout; > static bool nowayout = WATCHDOG_NOWAYOUT; > > module_param(wdt_timeout, int, 0); > @@ -212,7 +212,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > return -ENOMEM; > > wdd = >wdd; > - wdd->timeout = wdt_timeout; > + wdd->timeout = WDT_DEFAULT_TIMEOUT; > wdd->info = _wdt_info; > wdd->ops = _wdt_ops; > wdd->min_timeout = MIN_WDT_TIMEOUT; > @@ -273,7 +273,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > platform_set_drvdata(pdev, wdt); > > dev_info(>dev, "initialized (timeout = %d sec, nowayout = %d)\n", > - wdt_timeout, nowayout); > + wdd->timeout, nowayout); > > return 0; > } > -- > 2.15.1 > signature.asc Description: PGP signature
Re: [PATCH v3 1/7] watchdog: sama5d4: make use of timeout-secs provided in devicetree
Hi, Am I supposed to do something more to make this patchset picked up? Thanks, Marcus Folkesson On Sun, Feb 11, 2018 at 09:08:41PM +0100, Marcus Folkesson wrote: > watchdog_init_timeout() will allways pick timeout_param since it > defaults to a valid timeout. > > Following best practice described in > Documentation/watchdog/watchdog-kernel-api.txt to make use of > the parameter logic. > > Signed-off-by: Marcus Folkesson > --- > > Notes: > v3: > - Use wdd->timeout instead of wdt_timeout when print out > timout in probe function. > > drivers/watchdog/sama5d4_wdt.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c > index 0ae947c3d7bc..255169916dbb 100644 > --- a/drivers/watchdog/sama5d4_wdt.c > +++ b/drivers/watchdog/sama5d4_wdt.c > @@ -33,7 +33,7 @@ struct sama5d4_wdt { > unsigned long last_ping; > }; > > -static int wdt_timeout = WDT_DEFAULT_TIMEOUT; > +static int wdt_timeout; > static bool nowayout = WATCHDOG_NOWAYOUT; > > module_param(wdt_timeout, int, 0); > @@ -212,7 +212,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > return -ENOMEM; > > wdd = >wdd; > - wdd->timeout = wdt_timeout; > + wdd->timeout = WDT_DEFAULT_TIMEOUT; > wdd->info = _wdt_info; > wdd->ops = _wdt_ops; > wdd->min_timeout = MIN_WDT_TIMEOUT; > @@ -273,7 +273,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > platform_set_drvdata(pdev, wdt); > > dev_info(>dev, "initialized (timeout = %d sec, nowayout = %d)\n", > - wdt_timeout, nowayout); > + wdd->timeout, nowayout); > > return 0; > } > -- > 2.15.1 > signature.asc Description: PGP signature
Re: [PATCH v3 1/7] watchdog: sama5d4: make use of timeout-secs provided in devicetree
On 11/02/2018 at 21:08, Marcus Folkesson wrote: > watchdog_init_timeout() will allways pick timeout_param since it > defaults to a valid timeout. > > Following best practice described in > Documentation/watchdog/watchdog-kernel-api.txt to make use of > the parameter logic. > > Signed-off-by: Marcus FolkessonAcked-by: Nicolas Ferre Thanks, best regards, Nicolas > --- > > Notes: > v3: > - Use wdd->timeout instead of wdt_timeout when print out > timout in probe function. > > drivers/watchdog/sama5d4_wdt.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c > index 0ae947c3d7bc..255169916dbb 100644 > --- a/drivers/watchdog/sama5d4_wdt.c > +++ b/drivers/watchdog/sama5d4_wdt.c > @@ -33,7 +33,7 @@ struct sama5d4_wdt { > unsigned long last_ping; > }; > > -static int wdt_timeout = WDT_DEFAULT_TIMEOUT; > +static int wdt_timeout; > static bool nowayout = WATCHDOG_NOWAYOUT; > > module_param(wdt_timeout, int, 0); > @@ -212,7 +212,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > return -ENOMEM; > > wdd = >wdd; > - wdd->timeout = wdt_timeout; > + wdd->timeout = WDT_DEFAULT_TIMEOUT; > wdd->info = _wdt_info; > wdd->ops = _wdt_ops; > wdd->min_timeout = MIN_WDT_TIMEOUT; > @@ -273,7 +273,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > platform_set_drvdata(pdev, wdt); > > dev_info(>dev, "initialized (timeout = %d sec, nowayout = %d)\n", > - wdt_timeout, nowayout); > + wdd->timeout, nowayout); > > return 0; > } > -- Nicolas Ferre
Re: [PATCH v3 1/7] watchdog: sama5d4: make use of timeout-secs provided in devicetree
On 11/02/2018 at 21:08, Marcus Folkesson wrote: > watchdog_init_timeout() will allways pick timeout_param since it > defaults to a valid timeout. > > Following best practice described in > Documentation/watchdog/watchdog-kernel-api.txt to make use of > the parameter logic. > > Signed-off-by: Marcus Folkesson Acked-by: Nicolas Ferre Thanks, best regards, Nicolas > --- > > Notes: > v3: > - Use wdd->timeout instead of wdt_timeout when print out > timout in probe function. > > drivers/watchdog/sama5d4_wdt.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c > index 0ae947c3d7bc..255169916dbb 100644 > --- a/drivers/watchdog/sama5d4_wdt.c > +++ b/drivers/watchdog/sama5d4_wdt.c > @@ -33,7 +33,7 @@ struct sama5d4_wdt { > unsigned long last_ping; > }; > > -static int wdt_timeout = WDT_DEFAULT_TIMEOUT; > +static int wdt_timeout; > static bool nowayout = WATCHDOG_NOWAYOUT; > > module_param(wdt_timeout, int, 0); > @@ -212,7 +212,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > return -ENOMEM; > > wdd = >wdd; > - wdd->timeout = wdt_timeout; > + wdd->timeout = WDT_DEFAULT_TIMEOUT; > wdd->info = _wdt_info; > wdd->ops = _wdt_ops; > wdd->min_timeout = MIN_WDT_TIMEOUT; > @@ -273,7 +273,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > platform_set_drvdata(pdev, wdt); > > dev_info(>dev, "initialized (timeout = %d sec, nowayout = %d)\n", > - wdt_timeout, nowayout); > + wdd->timeout, nowayout); > > return 0; > } > -- Nicolas Ferre