regulator: rtmv20: Fix to make regcache value first reading back from HW
PATCH 1/1 regulator: rtmv20: Fix to make regcache value first reading back from HW
From: ChiYuan Huang <[email protected]>
- Fix to make regcache value first reading back from HW.
---
Due to init property function always write the regval, this patch didn't affect the normal operation. Just used to make sure during the cache init, the regcache default is reading back from the HW.
--- drivers/regulator/rtmv20-regulator.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/regulator/rtmv20-regulator.c +2 -0
@@ -27,6 +27,7 @@#define RTMV20_REG_LDIRQ 0x30#define RTMV20_REG_LDSTAT 0x40#define RTMV20_REG_LDMASK 0x50 +#define RTMV20_MAX_REGS (RTMV20_REG_LDMASK + 1)#define RTMV20_VID_MASK GENMASK(7, 4)#define RICHTEK_VID 0x80
@@ -275,6 +276,7 @@ static const struct regmap_config rtmv20_regmap_config = { .val_bits = 8, .cache_type = REGCACHE_RBTREE, .max_register = RTMV20_REG_LDMASK, + .num_reg_defaults_raw = RTMV20_MAX_REGS, .writeable_reg = rtmv20_is_accessible_reg, .readable_reg = rtmv20_is_accessible_reg,
Signature · 1 line
2.7.4
Mark Brown
maintainerQuoted 1 line · cy_huang
- Fix to make regcache value first reading back from HW.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: rtmv20: Fix to make regcache value first reading back from HW
commit: 46639a5e684edd0b80ae9dff220f193feb356277
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark