mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/7] regulator: core: locking cleanups, part 1/inf
@ 2023-08-30 17:35 Michał Mirosław
  2023-08-30 17:35 ` [PATCH v2 1/7] regulator/core: regulator_lock_nested: remove `lock` Michał Mirosław
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Michał Mirosław @ 2023-08-30 17:35 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown; +Cc: Douglas Anderson, linux-kernel, Stephen Boyd

This series aims to reduce regulator locking code complexity. There is
a consmetic fix (patch #6) included (applies to unexpected/unlikely
errors only). v2 adds a regulator_lock_contended() function to make the
ww_mutex locking sequence easier to understand.

Michał Mirosław (7):
  regulator/core: regulator_lock_nested: remove `lock`
  regulator/core: regulator_lock_nested: skip extra lock for -EDEADLK
  regulator/core: regulator_lock_nested: simplify nested locking
  regulator/core: regulator_resolve_supply: remove gotos
  regulator/core: regulator_lock_contended: wrap ww_mutex lock sequence
    restart
  regulator/core: regulator_lock_two: propagate error up
  regulator/core: regulator_lock_two: remove duplicate locking code

 drivers/regulator/core.c | 133 +++++++++++++++++----------------------
 1 file changed, 59 insertions(+), 74 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-08-31 22:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30 17:35 [PATCH v2 0/7] regulator: core: locking cleanups, part 1/inf Michał Mirosław
2023-08-30 17:35 ` [PATCH v2 1/7] regulator/core: regulator_lock_nested: remove `lock` Michał Mirosław
2023-08-30 17:35 ` [PATCH v2 2/7] regulator/core: regulator_lock_nested: skip extra lock for -EDEADLK Michał Mirosław
2023-08-30 17:35 ` [PATCH v2 3/7] regulator/core: regulator_lock_nested: simplify nested locking Michał Mirosław
2023-08-30 20:36   ` Stephen Boyd
2023-08-31 22:43     ` Michał Mirosław
2023-08-30 20:54   ` Doug Anderson
2023-08-31 22:41     ` Michał Mirosław
2023-08-30 17:35 ` [PATCH v2 5/7] regulator/core: regulator_lock_contended: wrap ww_mutex lock sequence restart Michał Mirosław
2023-08-30 20:21   ` Doug Anderson
2023-08-30 17:35 ` [PATCH v2 4/7] regulator/core: regulator_resolve_supply: remove gotos Michał Mirosław
2023-08-30 17:35 ` [PATCH v2 7/7] regulator/core: regulator_lock_two: remove duplicate locking code Michał Mirosław
2023-08-30 20:33   ` Doug Anderson
2023-08-30 17:35 ` [PATCH v2 6/7] regulator/core: regulator_lock_two: propagate error up Michał Mirosław
2023-08-30 20:32   ` Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®