[PATCH v6 1/6] regulator: core: Make locks re-entrant

2018-03-09 Thread Maciej Purski
Setting voltage, enabling/disabling regulators requires operations on all regulators related with the regulator being changed. Therefore, all of them should be locked for the whole operation. With the current locking implementation, adding additional dependency (regulators coupling) causes deadlock

[PATCH v6 1/6] regulator: core: Make locks re-entrant

2018-03-09 Thread Maciej Purski
Setting voltage, enabling/disabling regulators requires operations on all regulators related with the regulator being changed. Therefore, all of them should be locked for the whole operation. With the current locking implementation, adding additional dependency (regulators coupling) causes deadlock