linux_dsm_epyc7002/include/linux/mfd
Laxman Dewangan 51d3a0c999 regulator: palmas: preserve modes of rails during enable/disable
The Palma device like TPS65913 have the mode mask which is also
used for enable/disable the rails. The mode bits are defined as
	00: OFF
	01: AUTO
	10: ECO
	11: Forced PWM

and modes are set accordingly as
	REGULATOR_MODE_NORMAL: AUTO
	REGULATOR_MODE_IDLE: ECO
	REGULATOR_MODE_FAST: PWM

Two issue observed:
1. If client calls following sequence:
	regulator_enable(),
	regulator_set_mode(FAST),
	regulator_disable()

	and again the regulator_enable() then the mode is reset
	to NORMAL inplace of keeping the mode as FAST.

	Fixing this by storing the current mode configured by client
	and restoring modes when enable() is called after disable().

2. In following sequence, the regulator get enabled:
	regulator_disable()
	regulator_set_mode(FAST),

	Fixing this by updating new mode in register only if it is
	enabled.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2013-04-18 18:23:53 +01:00
..
abx500 This is the MFD pull request for the 3.9 merge window. 2013-02-24 20:00:58 -08:00
arizona This is the MFD pull request for the 3.9 merge window. 2013-02-24 20:00:58 -08:00
da9052 mfd: da9052/53 lockup fix 2013-01-27 01:35:32 +01:00
da9055 This is the MFD patch set for the 3.8 merge window. 2012-12-16 18:55:20 -08:00
pcf50633
pm8xxx mfd: remove use of __devexit 2012-11-28 12:22:27 -08:00
samsung regulator: add device tree support for s5m8767 2013-02-04 10:31:31 +00:00
syscon ARM: imx6q: Add iomuxc gpr support into syscon 2012-09-17 15:24:31 +02:00
wm831x
wm8350
wm8994 mfd: wm8994: Store platform data in device 2012-11-23 21:10:13 +09:00
88pm80x.h mfd: 88pm80x: Remove redundant devm_* calls 2013-02-14 00:22:54 +01:00
88pm860x.h 1. New drivers: 2012-10-07 17:29:24 +09:00
aat2870.h
ab3100.h mfd: ab3100: Split ab3100 headers out of abx500.h 2012-09-14 09:52:15 +02:00
abx500.h This is the MFD pull request for the 3.9 merge window. 2013-02-24 20:00:58 -08:00
adp5520.h
as3711.h mfd: Add an AS3711 PMIC MFD driver 2012-11-23 12:09:19 +01:00
asic3.h
core.h mfd: core: Push irqdomain mapping out into devices 2012-09-15 23:22:04 +02:00
da903x.h
davinci_voicecodec.h
db8500-prcmu.h mfd: db8500-prcmu: update resource passing 2013-02-12 12:44:27 +01:00
dbx500-prcmu.h This is the MFD pull request for the 3.9 merge window. 2013-02-24 20:00:58 -08:00
ds1wm.h
ezx-pcap.h
htc-egpio.h
htc-pasic3.h
intel_msic.h
janz.h
lm3533.h
lp8788-isink.h mfd: Add lp8788 mfd driver 2012-09-23 20:51:34 +02:00
lp8788.h backlight: add new lp8788 backlight driver 2013-02-27 19:10:09 -08:00
lpc_ich.h gpio: gpio-ich: Share ownership of GPIO groups 2012-09-14 09:52:13 +02:00
max8907.h mfd: max8907: Add power off control 2012-09-19 12:07:56 +02:00
max8925.h mfd: max8925: Add irqdomain for dt 2013-02-14 00:23:00 +01:00
max8997-private.h extcon: max8997: Consolidate duplicate code for checking ADC/CHG cable type 2013-02-14 07:54:22 +09:00
max8997.h extcon: max8997: Use workqueue to check cable state after completing boot of platform 2013-02-14 07:54:49 +09:00
max8998-private.h
max8998.h mfd: printk/comment fixes 2012-09-01 10:01:31 -07:00
max77686-private.h
max77686.h
max77693-private.h extcon: max77693: Remove duplicate code by making function 2013-01-15 15:42:14 +09:00
max77693.h extcon: max77693: Set default uart/usb path by using platform data 2013-01-15 15:42:16 +09:00
mc13xxx.h
mc13783.h
mc13892.h
mcp.h
menelaus.h ARM: OMAP2: Move plat/menelaus.h to linux/mfd/menelaus.h 2012-10-15 13:53:41 -07:00
palmas.h regulator: palmas: preserve modes of rails during enable/disable 2013-04-18 18:23:53 +01:00
rc5t583.h mfd: rc5t583: Fix array subscript is above array bounds 2012-11-26 12:10:51 +01:00
rdc321x.h
retu.h mfd: Introduce retu-mfd driver 2012-11-21 16:07:57 +01:00
rtsx_common.h mfd: rtsx: Add clock divider hook 2013-01-27 01:30:20 +01:00
rtsx_pci.h mfd: rtsx: Fix issue that booting OS with SD card inserted 2013-02-14 00:24:12 +01:00
smsc.h mfd: smsc: Add support for smsc gpio io/keypad driver 2012-10-01 15:27:48 +02:00
sta2x11-mfd.h mfd: sta2x11-mfd: Add defines for some sta2x11 sctl registers 2012-11-20 12:21:16 +01:00
stmpe.h mfd: stmpe: Get rid of irq_invert_polarity 2012-11-30 11:54:51 +01:00
syscon.h mfd: Add syscon driver based on regmap 2012-09-17 15:24:14 +02:00
t7l66xb.h
tc3589x.h mfd: Provide the tc3589x with its own IRQ domain 2012-09-17 15:03:38 +02:00
tc6387xb.h
tc6393xb.h
ti_am335x_tscadc.h IIO : ADC: tiadc: Add support of TI's ADC driver 2012-11-05 23:50:27 +01:00
ti_ssp.h
tmio.h mmc: tmio: remove unused and deprecated symbols 2013-02-24 14:37:24 -05:00
tps6105x.h
tps6507x.h
tps6586x.h This is the MFD patch set for the 3.8 merge window. 2012-12-16 18:55:20 -08:00
tps65090.h This is the MFD patch set for the 3.8 merge window. 2012-12-16 18:55:20 -08:00
tps65217.h backlight: Add TPS65217 WLED driver 2012-09-25 10:42:02 +02:00
tps65910.h mfd: tps65910: Remove unused data 2012-11-30 12:20:35 +01:00
tps65912.h
tps80031.h mfd: Add TI TPS80031 mfd core driver 2012-11-21 16:07:47 +01:00
twl4030-audio.h
twl6040.h mfd: twl6040: Convert to use regmap_irq 2012-11-13 19:54:23 +01:00
ucb1x00.h
viperboard.h iio: adc: Add viperboard adc driver 2012-11-20 12:21:13 +01:00
wl1273-core.h
wm8400-audio.h
wm8400-private.h
wm8400.h