Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: stw481x-vmmc: fix ages old enable error

The regulator has never been properly enabled, it has been
dormant all the time. It's strange that MMC was working
at all, but it likely worked by the signals going through
the levelshifter and reaching the card anyways.

Fixes: 3615a34ea1a6 ("regulator: add STw481x VMMC driver")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org

authored by

Linus Walleij and committed by
Mark Brown
295070e9 1001354c

+2 -1
+2 -1
drivers/regulator/stw481x-vmmc.c
··· 47 47 .volt_table = stw481x_vmmc_voltages, 48 48 .enable_time = 200, /* FIXME: look this up */ 49 49 .enable_reg = STW_CONF1, 50 - .enable_mask = STW_CONF1_PDN_VMMC, 50 + .enable_mask = STW_CONF1_PDN_VMMC | STW_CONF1_MMC_LS_STATUS, 51 + .enable_val = STW_CONF1_PDN_VMMC, 51 52 .vsel_reg = STW_CONF1, 52 53 .vsel_mask = STW_CONF1_VMMC_MASK, 53 54 };