Skip to content

regulator: vctrl: Avoid lockdep warning in enable/disable ops

Chen-Yu Tsai linux-arm-kernel linux-rockchip lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2regulator: vctrl: Use locked regulator_get_voltage in probe pathdrivers/regulator/vctrl-regulator.c+2 -10 replies
2/2regulator: vctrl: Avoid lockdep warning in enable/disable opsdrivers/regulator/vctrl-regulator.c+42 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] regulator: vctrl: Avoid lockdep warning in enable/disable ops

Hi,

Here are a couple fixes for vctrl-regulator. This driver is only used RK3399-based Chromebooks.

Patch one fixes a misuse of the regulator API, which was found while tracing the code to fix the lockdep warning.

Patch two fixes a lockdep warning and actual (not easy to reproduce) deadlock.

Please have a look. The are no dependencies between the two patches.

Additionally, I believe it would make sense to implement the voltage stepping feature for all regulators in the core. Then we could move away from vctrl-regulator. Right now it is only done for coupled regulators.

Regards
ChenYu

Chen-Yu Tsai (2):
regulator: vctrl: Use locked regulator_get_voltage in probe path
regulator: vctrl: Avoid lockdep warning in enable/disable ops

 drivers/regulator/vctrl-regulator.c | 73 +++++++++++++++++------------
 1 file changed, 43 insertions(+), 30 deletions(-)
Signature · 1 line
2.33.0.rc2.250.ged5fa647cd-goog