Skip to content
Commit 4174a7a4 authored by Anthony Olech's avatar Anthony Olech Committed by Mark Brown
Browse files

regmap: Fix regmap_bulk_write single-rw mutex deadlock



When regmap_bulk_write() is called with the map->use_single_rw flag set
an immediate mutex deadlock happens because regmap_raw_write() is called
after obtaining the mutex and regmap_raw_write() itself then tries to
obtain the mutex as well.

It is obvious that no one other than myself tried it with a real device.
I did, but only for the purposes of an experiment and demonstration.

But even if this situation will never ever happen with a real device, it
is a bug and therefore should be fixed.

Signed-off-by: default avatarAnthony Olech <anthony.olech.opensource@diasemi.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent d0e639c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment