Fabrice Gasnier
7e1ab103f6
mfd: stm32-timers: Avoid clearing auto reload register
...
[ Upstream commit 4917e498c6894ba077867aff78f82cffd5ffbb5c ]
The ARR register is cleared unconditionally upon probing, after the maximum
value has been read. This initial condition is rather not intuitive, when
considering the counter child driver. It rather expects the maximum value
by default:
- The counter interface shows a zero value by default for 'ceiling'
attribute.
- Enabling the counter without any prior configuration makes it doesn't
count.
The reset value of ARR register is the maximum. So Choice here
is to backup it, and restore it then, instead of clearing its value.
It also fixes the initial condition seen by the counter driver.
Fixes: d0f949e220 ("mfd: Add STM32 Timers driver")
Signed-off-by: Fabrice Gasnier <[email protected] >
Acked-by: William Breathitt Gray <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2021-05-14 09:44:25 +02:00
..
88pm80x.c
88pm800.c
mfd: 88pm800: Convert to i2c_new_dummy_device
2019-08-12 08:51:45 +01:00
88pm805.c
88pm860x-core.c
mfd: 88pm860x-core: Convert to i2c_new_dummy_device
2019-08-12 08:51:50 +01:00
88pm860x-i2c.c
aat2870-core.c
mfd: aat2870: No need to check return value of debugfs_create functions
2019-08-12 07:27:40 +01:00
ab3100-core.c
mfd: ab3100-core: Convert to i2c_new_dummy_device
2019-08-12 08:51:54 +01:00
ab3100-otp.c
mfd: ab3100: No need to check return value of debugfs_create functions
2019-08-12 07:27:40 +01:00
ab8500-core.c
ab8500-debugfs.c
mfd: Remove dev_err() usage after platform_get_irq()
2019-08-12 11:29:47 +01:00
ab8500-gpadc.c
ab8500-sysctrl.c
abx500-core.c
ac100.c
act8945a.c
adp5520.c
altera-a10sr.c
altera-sysmgr.c
drivers: Introduce device lookup variants by of_node
2019-07-30 13:07:41 +02:00
arizona-core.c
mfd: arizona: Ensure 32k clock is put on driver unbind and error
2020-08-21 13:05:30 +02:00
arizona-i2c.c
arizona-irq.c
mfd: arizona: Fix rumtime PM imbalance on error
2021-05-11 14:04:12 +02:00
arizona-spi.c
arizona.h
as3711.c
as3722.c
asic3.c
mfd: asic3: Include the right header
2019-08-14 09:07:20 +01:00
at91-usart.c
atmel-flexcom.c
atmel-hlcdc.c
atmel-smc.c
axp20x-i2c.c
axp20x-rsb.c
axp20x.c
mfd: axp20x: Mark AXP20X_VBUS_IPSOUT_MGMT as volatile
2020-02-11 04:35:21 -08:00
bcm590xx.c
mfd: bcm590xx: Convert to i2c_new_dummy_device
2019-08-12 08:51:58 +01:00
bcm2835-pm.c
bd9571mwv.c
mfd: bd9571mwv: Use devm_mfd_add_devices()
2021-03-04 10:26:28 +01:00
cros_ec_dev.c
mfd: cros_ec: Use mfd_add_hotplug_devices() helper
2019-09-02 11:34:24 +01:00
cs47l15-tables.c
cs47l24-tables.c
cs47l35-tables.c
cs47l85-tables.c
cs47l90-tables.c
cs47l92-tables.c
cs5535-mfd.c
- Core Frameworks
2019-07-15 20:18:40 -07:00
da903x.c
da9052-core.c
da9052-i2c.c
da9052-irq.c
da9052-spi.c
da9055-core.c
da9055-i2c.c
da9062-core.c
mfd: da9062: Fix watchdog compatible string
2020-02-11 04:35:52 -08:00
da9063-core.c
da9063-i2c.c
da9063-irq.c
da9150-core.c
mfd: da9150-core: Convert to i2c_new_dummy_device
2019-08-12 08:52:03 +01:00
davinci_voicecodec.c
mfd: davinci_voicecodec: Remove pointless #include
2019-07-25 14:21:43 +01:00
db8500-prcmu.c
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal
2019-09-29 10:24:23 -07:00
dbx500-prcmu-regs.h
dln2.c
mfd: dln2: Run event handler loop under spinlock
2020-08-21 13:05:38 +02:00
dm355evm_msp.c
exynos-lpass.c
ezx-pcap.c
mfd: ezx-pcap: Replace mutex_lock with spin_lock
2019-09-02 11:05:37 +01:00
fsl-imx25-tsadc.c
mfd: Remove dev_err() usage after platform_get_irq()
2019-08-12 11:29:47 +01:00
hi655x-pmic.c
- Core Frameworks
2019-07-15 20:18:40 -07:00
hi6421-pmic-core.c
htc-i2cpld.c
mfd: htc-i2cpld: Drop check because i2c_unregister_device() is NULL safe
2019-09-02 11:09:03 +01:00
htc-pasic3.c
intel-lpss-acpi.c
mfd: intel-lpss: Add Intel Skylake ACPI IDs
2019-09-02 11:09:03 +01:00
intel-lpss-pci.c
mfd: intel-lpss: Add Intel Tiger Lake PCH-H PCI IDs
2020-09-03 11:26:43 +02:00
intel-lpss.c
mfd: intel-lpss: Use devm_ioremap_uc for MMIO
2020-05-10 10:31:30 +02:00
intel-lpss.h
intel_msic.c
intel_quark_i2c_gpio.c
intel_soc_pmic_bxtwc.c
mfd: Remove dev_err() usage after platform_get_irq()
2019-08-12 11:29:47 +01:00
intel_soc_pmic_chtdc_ti.c
intel_soc_pmic_chtwc.c
intel_soc_pmic_core.c
intel_soc_pmic_core.h
intel_soc_pmic_crc.c
intel_soc_pmic_mrfld.c
mfd: Add support for Merrifield Basin Cove PMIC
2019-09-02 11:09:03 +01:00
ipaq-micro.c
janz-cmodio.c
Kconfig
mfd: max77650: Select REGMAP_IRQ in Kconfig
2020-02-14 16:34:19 -05:00
kempld-core.c
lm3533-core.c
lm3533-ctrlbank.c
lochnagar-i2c.c
lp873x.c
lp3943.c
lp8788-irq.c
lp8788.c
lp87565.c
- Core Frameworks
2019-07-15 20:18:40 -07:00
lpc_ich.c
lpc_sch.c
madera-core.c
madera-i2c.c
madera-spi.c
madera.h
- Core Frameworks
2019-07-15 20:18:40 -07:00
Makefile
- New Drivers
2019-09-23 19:37:49 -07:00
max8907.c
mfd: max8907: Convert to i2c_new_dummy_device
2019-08-12 08:53:58 +01:00
max8925-core.c
max8925-i2c.c
mfd: max8925-i2c: Convert to i2c_new_dummy_device
2019-08-12 08:54:10 +01:00
max8997-irq.c
max8997.c
mfd: max8997: Convert to i2c_new_dummy_device
2019-08-12 08:53:58 +01:00
max8998-irq.c
max8998.c
mfd: max8998: Convert to i2c_new_dummy_device
2019-08-12 08:53:58 +01:00
max14577.c
mfd: max14577: Convert to i2c_new_dummy_device
2019-08-12 08:53:58 +01:00
max77620.c
mfd: max77620: Add of_node_put() before return
2019-07-25 14:21:38 +01:00
max77650.c
max77686.c
max77693.c
mfd: max77693: Convert to i2c_new_dummy_device
2019-08-12 08:53:58 +01:00
max77843.c
mfd: max77843: Convert to i2c_new_dummy_device
2019-08-12 08:54:05 +01:00
mc13xxx-core.c
mc13xxx-i2c.c
mc13xxx-spi.c
mc13xxx.h
mcp-core.c
mcp-sa11x0.c
menelaus.c
- Core Frameworks
2019-07-15 20:18:40 -07:00
menf21bmc.c
mfd-core.c
mfd: mfd-core: Protect against NULL call-back function pointer
2020-10-01 13:17:17 +02:00
motorola-cpcap.c
mt6397-core.c
mfd: mt6397: Fix probe after changing mt6397-core
2019-10-24 08:49:25 +01:00
mt6397-irq.c
mfd: mt6397: Extract IRQ related code from core driver
2019-08-12 12:29:30 +01:00
mxs-lradc.c
omap-usb-host.c
mfd: omap-usb-host: Mark expected switch fall-throughs
2019-08-12 11:28:55 +01:00
omap-usb-tll.c
omap-usb.h
palmas.c
mfd: palmas: Convert to i2c_new_dummy_device
2019-08-12 08:54:16 +01:00
pcf50633-adc.c
pcf50633-core.c
pcf50633-gpio.c
pcf50633-irq.c
qcom-pm8xxx.c
qcom-spmi-pmic.c
qcom_rpm.c
mfd: Remove dev_err() usage after platform_get_irq()
2019-08-12 11:29:47 +01:00
rave-sp.c
rc5t583-irq.c
rc5t583.c
rdc321x-southbridge.c
retu-mfd.c
rk808.c
mfd: rk808: Make PM function declaration static
2019-08-27 13:33:21 +01:00
rn5t618.c
mfd: rn5t618: Mark ADC control register volatile
2020-02-11 04:35:52 -08:00
rohm-bd718x7.c
rohm-bd70528.c
rt5033.c
sec-core.c
sec-irq.c
si476x-cmd.c
si476x-i2c.c
si476x-prop.c
sky81452.c
sm501.c
mfd: sm501: Fix leaks in probe()
2020-10-29 09:57:43 +01:00
smsc-ece1099.c
sprd-sc27xx-spi.c
mfd: sprd: Add wakeup capability for PMIC IRQ
2020-11-18 19:20:26 +01:00
ssbi.c
sta2x11-mfd.c
stm32-lptimer.c
stm32-timers.c
mfd: stm32-timers: Avoid clearing auto reload register
2021-05-14 09:44:25 +02:00
stmfx.c
mfd: stmfx: Disable IRQ in suspend to avoid spurious interrupt
2020-06-24 17:50:33 +02:00
stmpe-i2c.c
stmpe-spi.c
stmpe.c
stmpe.h
stpmic1.c
stw481x.c
sun4i-gpadc.c
sun6i-prcm.c
syscon.c
mfd/syscon: Add device_node_to_regmap()
2019-08-08 15:30:07 -07:00
t7l66xb.c
tc3589x.c
tc6387xb.c
tc6393xb.c
ti-lmu.c
ti_am335x_tscadc.c
timberdale.c
mfd: timberdale: Use dev_get_drvdata
2019-08-12 08:46:29 +01:00
timberdale.h
tmio_core.c
tps6105x.c
tps6507x.c
tps6586x.c
tps65010.c
tps65086.c
tps65090.c
tps65217.c
tps65218.c
tps65910.c
tps65911-comparator.c
tps65912-core.c
tps65912-i2c.c
tps65912-spi.c
tps68470.c
tps80031.c
mfd: tps80031: Convert to devm_i2c_new_dummy_device
2019-08-12 08:40:45 +01:00
tqmx86.c
twl-core.c
mfd: twl-core: Convert to i2c_new_dummy_device
2019-08-12 08:53:58 +01:00
twl-core.h
twl4030-audio.c
twl4030-irq.c
twl4030-power.c
twl6030-irq.c
twl6040.c
ucb1x00-assabet.c
ucb1x00-core.c
ucb1x00-ts.c
ucb1400_core.c
vexpress-sysreg.c
viperboard.c
vx855.c
wl1273-core.c
wm97xx-core.c
wm831x-auxadc.c
mfd: wm831x-auxadc: Prevent use after free in wm831x_auxadc_read_irq()
2021-03-04 10:26:33 +01:00
wm831x-core.c
wm831x-i2c.c
wm831x-irq.c
wm831x-otp.c
wm831x-spi.c
wm5102-tables.c
wm5110-tables.c
wm8350-core.c
wm8350-gpio.c
wm8350-i2c.c
wm8350-irq.c
wm8350-regmap.c
wm8400-core.c
wm8994-core.c
mfd: wm8994: Fix driver operation if loaded as modules
2020-06-24 17:50:16 +02:00
wm8994-irq.c
wm8994-regmap.c
wm8994.h
wm8997-tables.c
wm8998-tables.c