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)
commitd9df0187b6edd5871255cee29128c63f134e599c
tree805f086332d7ef6b8646e41efb431b7fc05fc35b
parent621d3ce830649d56ef1c9611e370d05ceaffd7fc
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