Re: [RFC PATCH 2/3] watchdog: da9062: avoid regmap in restart handler

2018-10-08 Thread Andy Shevchenko
On Sun, Oct 07, 2018 at 05:39:36PM +0200, Stefan Lengfeld wrote: > Using i2c_transfer() directly to set the shutdown bit is more reliable > than using regmap in atomic contexts, because calls to 'schedule()' or > 'sleep()' must be avoided in call code paths. > #include > #include > #include

[RFC PATCH 2/3] watchdog: da9062: avoid regmap in restart handler

2018-10-07 Thread Stefan Lengfeld
Using i2c_transfer() directly to set the shutdown bit is more reliable than using regmap in atomic contexts, because calls to 'schedule()' or 'sleep()' must be avoided in call code paths. Tested on a phyCORE-i.MX6 Solo board. Signed-off-by: Stefan Lengfeld --- drivers/mfd/da9062-core.c |