RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-08 Thread Opensource [Steve Twiss]
On 18 April 2015 16:53 Guenter Roeck wrote: Hi Guenter, There were some missing explanations in my previous e-mails for some of your comments. Please find them below. During the da9062_wdt_probe() there were several ignored error paths and a missing cleanup . I intend to rectify this with the

RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-08 Thread Opensource [Steve Twiss]
On 18 April 2015 16:53 Guenter Roeck wrote: Hi Guenter, There were some missing explanations in my previous e-mails for some of your comments. Please find them below. During the da9062_wdt_probe() there were several ignored error paths and a missing cleanup . I intend to rectify this with the

RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-07 Thread Opensource [Steve Twiss]
On 07 May 2015 18:58 Guenter Roeck wrote: Hi Guenter, > > +static void da9062_apply_window_protection(struct da9062_watchdog *wdt) > > +{ > > + unsigned long delay = msecs_to_jiffies(DA9062_RESET_PROTECTION_MS); > > + unsigned long timeout = wdt->j_time_stamp + delay; > > +

Re: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-07 Thread Guenter Roeck
On Thu, May 07, 2015 at 05:45:13PM +, Opensource [Steve Twiss] wrote: > On 06 May 2015 21:07 Guenter Roeck wrote: > > > > > > The DA9062 watchdog ping (register CONTROL_F) is "windowed" for > > > > > protection > > > > > against spurious writes -- i.e. the ping function cannot be called > >

RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-07 Thread Opensource [Steve Twiss]
On 06 May 2015 21:07 Guenter Roeck wrote: > > > > The DA9062 watchdog ping (register CONTROL_F) is "windowed" for > > > > protection > > > > against spurious writes -- i.e. the ping function cannot be called > > > > within a 250ms > > > > time limit or the PMIC will reset. This windowing

Re: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-07 Thread Guenter Roeck
On Thu, May 07, 2015 at 05:45:13PM +, Opensource [Steve Twiss] wrote: On 06 May 2015 21:07 Guenter Roeck wrote: The DA9062 watchdog ping (register CONTROL_F) is windowed for protection against spurious writes -- i.e. the ping function cannot be called within a 250ms

RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-07 Thread Opensource [Steve Twiss]
On 07 May 2015 18:58 Guenter Roeck wrote: Hi Guenter, +static void da9062_apply_window_protection(struct da9062_watchdog *wdt) +{ + unsigned long delay = msecs_to_jiffies(DA9062_RESET_PROTECTION_MS); + unsigned long timeout = wdt-j_time_stamp + delay; + unsigned long

RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-07 Thread Opensource [Steve Twiss]
On 06 May 2015 21:07 Guenter Roeck wrote: The DA9062 watchdog ping (register CONTROL_F) is windowed for protection against spurious writes -- i.e. the ping function cannot be called within a 250ms time limit or the PMIC will reset. This windowing protection also extends

Re: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-06 Thread Guenter Roeck
On Wed, May 06, 2015 at 04:30:50PM +, Opensource [Steve Twiss] wrote: > > On 06 May 2015 17:02 Guenter Roeck wrote: > > > On Wed, May 06, 2015 at 02:54:37PM +, Opensource [Steve Twiss] wrote: > > > On 18 April 2015 16:53 Guenter Roeck wrote: > > > > > > Hi Guenter, > > > > > > Thanks for

RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-06 Thread Opensource [Steve Twiss]
On 06 May 2015 17:02 Guenter Roeck wrote: > On Wed, May 06, 2015 at 02:54:37PM +, Opensource [Steve Twiss] wrote: > > On 18 April 2015 16:53 Guenter Roeck wrote: > > > > Hi Guenter, > > > > Thanks for your comments. > > > > > On 04/17/2015 07:23 AM, S Twiss wrote: > > > > From: S Twiss > >

Re: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-06 Thread Guenter Roeck
On Wed, May 06, 2015 at 02:54:37PM +, Opensource [Steve Twiss] wrote: > On 18 April 2015 16:53 Guenter Roeck wrote: > > Hi Guenter, > > Thanks for your comments. > > > On 04/17/2015 07:23 AM, S Twiss wrote: > > > From: S Twiss > > > > > > Add watchdog driver support for DA9062 > > > > > >

RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-06 Thread Opensource [Steve Twiss]
On 18 April 2015 16:53 Guenter Roeck wrote: Hi Guenter, Thanks for your comments. > On 04/17/2015 07:23 AM, S Twiss wrote: > > From: S Twiss > > > > Add watchdog driver support for DA9062 > > > > Signed-off-by: Steve Twiss > > > Hi Steve, > > Key question here is if the da9062 is really so

RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-06 Thread Opensource [Steve Twiss]
On 18 April 2015 16:53 Guenter Roeck wrote: Hi Guenter, Thanks for your comments. On 04/17/2015 07:23 AM, S Twiss wrote: From: S Twiss stwiss.opensou...@diasemi.com Add watchdog driver support for DA9062 Signed-off-by: Steve Twiss stwiss.opensou...@diasemi.com Hi Steve, Key

Re: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-06 Thread Guenter Roeck
On Wed, May 06, 2015 at 04:30:50PM +, Opensource [Steve Twiss] wrote: On 06 May 2015 17:02 Guenter Roeck wrote: On Wed, May 06, 2015 at 02:54:37PM +, Opensource [Steve Twiss] wrote: On 18 April 2015 16:53 Guenter Roeck wrote: Hi Guenter, Thanks for your comments.

RE: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-06 Thread Opensource [Steve Twiss]
On 06 May 2015 17:02 Guenter Roeck wrote: On Wed, May 06, 2015 at 02:54:37PM +, Opensource [Steve Twiss] wrote: On 18 April 2015 16:53 Guenter Roeck wrote: Hi Guenter, Thanks for your comments. On 04/17/2015 07:23 AM, S Twiss wrote: From: S Twiss

Re: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-05-06 Thread Guenter Roeck
On Wed, May 06, 2015 at 02:54:37PM +, Opensource [Steve Twiss] wrote: On 18 April 2015 16:53 Guenter Roeck wrote: Hi Guenter, Thanks for your comments. On 04/17/2015 07:23 AM, S Twiss wrote: From: S Twiss stwiss.opensou...@diasemi.com Add watchdog driver support for DA9062

Re: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-04-18 Thread Guenter Roeck
On 04/17/2015 07:23 AM, S Twiss wrote: From: S Twiss Add watchdog driver support for DA9062 Signed-off-by: Steve Twiss Hi Steve, Key question here is if the da9062 is really so much different to the da9062 that you can not use the same driver. I am especially concerned about the added

Re: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-04-18 Thread Guenter Roeck
On 04/17/2015 07:23 AM, S Twiss wrote: From: S Twiss stwiss.opensou...@diasemi.com Add watchdog driver support for DA9062 Signed-off-by: Steve Twiss stwiss.opensou...@diasemi.com Hi Steve, Key question here is if the da9062 is really so much different to the da9062 that you can not use the

[PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-04-17 Thread S Twiss
From: S Twiss Add watchdog driver support for DA9062 Signed-off-by: Steve Twiss --- This patch applies against linux-next and v4.0 drivers/watchdog/Kconfig | 9 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/da9062_wdt.c | 249

[PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-04-17 Thread S Twiss
From: S Twiss stwiss.opensou...@diasemi.com Add watchdog driver support for DA9062 Signed-off-by: Steve Twiss stwiss.opensou...@diasemi.com --- This patch applies against linux-next and v4.0 drivers/watchdog/Kconfig | 9 ++ drivers/watchdog/Makefile | 1 +