Re: [PATCH v1 10/11] regulator: core: Use ww_mutex for regulators locking

2018-11-08 Thread Dmitry Osipenko
On 08.11.2018 16:07, Mark Brown wrote: > On Fri, Oct 05, 2018 at 06:36:37PM +0300, Dmitry Osipenko wrote: > >> Wait/wound mutex shall be used in order to avoid lockups on locking of >> coupled regulators. > > This breaks the build due to a few of the drivers (wm8350 and da9210 at > least) taking

Re: [PATCH v1 10/11] regulator: core: Use ww_mutex for regulators locking

2018-11-08 Thread Mark Brown
On Fri, Oct 05, 2018 at 06:36:37PM +0300, Dmitry Osipenko wrote: > Wait/wound mutex shall be used in order to avoid lockups on locking of > coupled regulators. This breaks the build due to a few of the drivers (wm8350 and da9210 at least) taking rdev locks in their interrupt handlers. I'd sugges

[PATCH v1 10/11] regulator: core: Use ww_mutex for regulators locking

2018-10-05 Thread Dmitry Osipenko
Wait/wound mutex shall be used in order to avoid lockups on locking of coupled regulators. Signed-off-by: Dmitry Osipenko Suggested-by: Lucas Stach --- drivers/regulator/core.c | 401 +++ include/linux/regulator/driver.h | 3 +- 2 files changed, 307 inserti