regulator: s2mps11: Fix dw_mmc failure on Gear 2
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 11 Dec 2014 13:40:21 +0000 (14:40 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 12 Dec 2014 13:04:39 +0000 (13:04 +0000)
commit1222d8fe578cd28a6c7f5e4e6c6b664c56abfdc0
tree66732c12ba096693cdeed313c615d94d7e42de34
parentb2776bf7149bddd1f4161f14f79520f17fc1d71d
regulator: s2mps11: Fix dw_mmc failure on Gear 2

Invalid buck4 configuration for linear mapping of voltage in S2MPS14
regulators caused boot failure on Gear 2 (dw_mmc-exynos):

[    3.569137] EXT4-fs (mmcblk0p15): mounted filesystem with ordered data mode. Opts: (null)
[    3.571716] VFS: Mounted root (ext4 filesystem) readonly on device 179:15.
[    3.629842] mmcblk0: error -110 sending status command, retrying
[    3.630244] mmcblk0: error -110 sending status command, retrying
[    3.636292] mmcblk0: error -110 sending status command, aborting

Buck4 voltage regulator has different minimal voltage value than other
bucks. Commit merging multiple regulator description macros caused to
use linear_min_sel from buck[1235] regulators as value for buck4. This
lead to lower voltage of buck4 than required.

Output of the buck4 is used internally as power source for
LDO{3,4,7,11,19,20,21,23}. On Gear 2 board LDO11 is used as MMC
regulator (V_EMMC_1.8V).

Fixes: 5a867cf28893 ("regulator: s2mps11: Optimize the regulator description macro")
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org>
drivers/regulator/s2mps11.c