]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: twl: Make sure we have access to powerbus before trying to write to it
authorIvaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Sat, 26 Mar 2016 08:28:13 +0000 (10:28 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 28 Mar 2016 09:39:58 +0000 (10:39 +0100)
commit2b0acbe1cff7c576384522491e1690af34e97ea3
treef746457ae21a732018cd6ba84ecbd1395399da67
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
regulator: twl: Make sure we have access to powerbus before trying to write to it

According to the TRM, we need to enable i2c access to powerbus before
writing to it. Also, a new write to powerbus should not be attempted if
there is a pending transfer. The current code does not implement that
functionality and while there are no known problems caused by that, it is
better to follow what TRM says.

Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/twl-regulator.c