]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: twl6030: workaround the VMMC reset behavior
authorGregory CLEMENT <gregory.clement@bootlin.com>
Thu, 25 Jul 2019 09:45:42 +0000 (11:45 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 9 Aug 2019 17:04:22 +0000 (18:04 +0100)
commit8adb92b3616d111b3e1f4997c11aa69bc43c985b
tree805f086332d7ef6b8646e41efb431b7fc05fc35b
parent02b78eeafe18c409d788c78025e0fedec4c049e7
regulator: twl6030: workaround the VMMC reset behavior

During reset the VMMC regulator doesn't reach 0V and only drops to
1.8V, furthermore the pulse width is under 200us whereas the SD
specification expect 1ms.

The WR_S bit allows the TWL6030 to no reset at all the VMMC during warm
reset and keep the current voltage. Thanks to this workaround the SD
card doesn't reach a undefined reset stage.

Actually this behavior is available for all the LDO regulator, so the
driver will also allow to use it with any of these regulator.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/r/20190725094542.16547-4-gregory.clement@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/twl6030-regulator.c