linux-stable/drivers/regulator
Martin Blumenstingl 733f4c36e6 regulator: pwm-regulator: Add validity checks in continuous .get_voltage
[ Upstream commit c92688cac2 ]

Continuous regulators can be configured to operate only in a certain
duty cycle range (for example from 0..91%). Add a check to error out if
the duty cycle translates to an unsupported (or out of range) voltage.

Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://msgid.link/r/20240113224628.377993-2-martin.blumenstingl@googlemail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:06:09 +01:00
..
88pg86x.c
88pm800-regulator.c regulator: 88pm800: fix warning same module names 2019-12-17 20:35:39 +01:00
88pm8607.c
Kconfig regulator: add QCOM RPMh regulator driver 2018-08-10 17:30:29 +01:00
Makefile regulator: 88pm800: fix warning same module names 2019-12-17 20:35:39 +01:00
aat2870-regulator.c
ab3100.c
ab8500-ext.c
ab8500.c regulator: ab8500: Remove AB8505 USB regulator 2020-01-09 10:19:05 +01:00
act8865-regulator.c regulator: act8865: Fix act8600_sudcdc_voltage_ranges setting 2019-04-05 22:33:15 +02:00
act8945a-regulator.c
ad5398.c
anatop-regulator.c regulator: anatop: Switch to SPDX identifier 2018-05-24 15:17:07 +01:00
arizona-ldo1.c regulator: arizona-ldo1: Use correct device to get enable GPIO 2018-06-19 16:12:01 +01:00
arizona-micsupp.c
as3711-regulator.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
as3722-regulator.c
axp20x-regulator.c regulator: axp20x: Fix reference cout leak 2021-03-04 09:39:44 +01:00
bcm590xx-regulator.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
bd9571mwv-regulator.c regulator: bd9571mwv: Fix AVS and DVFS voltage range 2021-04-14 08:22:34 +02:00
bd71837-regulator.c regulator: bd71837: Disable voltage monitoring for LDO3/4 2018-08-29 15:07:18 +01:00
core.c regulator: Fix error checking for debugfs_create_dir 2023-06-21 15:39:56 +02:00
cpcap-regulator.c regulator: Add support for CPCAP regulators on Motorola Xoom devices. 2018-07-24 15:37:08 +01:00
da903x.c
da9052-regulator.c regulator: da905{2,5}: Remove unnecessary array check 2023-06-09 10:24:03 +02:00
da9055-regulator.c regulator: da905{2,5}: Remove unnecessary array check 2023-06-09 10:24:03 +02:00
da9062-regulator.c
da9063-regulator.c regulator: da9063: Handle less LDOs on DA9063L 2018-07-04 07:17:08 +01:00
da9210-regulator.c
da9210-regulator.h
da9211-regulator.c regulator: da9211: Use irq handler when ready 2023-01-18 11:30:55 +01:00
da9211-regulator.h
db8500-prcmu.c
dbx500-prcmu.c
dbx500-prcmu.h
devres.c
dummy.c
dummy.h
fan53555.c
fixed-helper.c regulator: gpio: Revert 2018-06-07 14:23:08 +01:00
fixed.c regulator: gpio: Revert 2018-06-07 14:23:08 +01:00
gpio-regulator.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
helpers.c
hi655x-regulator.c
hi6421-regulator.c
hi6421v530-regulator.c
internal.h regulator: core: Parse coupled regulators properties 2018-05-17 16:05:48 +09:00
isl6271a-regulator.c
isl9305.c
lm363x-regulator.c regulator: lm363x: Fix off-by-one n_voltages for lm3632 ldo_vpos/ldo_vneg 2019-10-05 13:09:33 +02:00
lp872x.c
lp873x-regulator.c
lp3971.c
lp3972.c
lp8755.c
lp8788-buck.c
lp8788-ldo.c regulator: lp8788-ldo: Pass descriptor instead of GPIO number 2018-05-24 16:50:31 +01:00
lp87565-regulator.c regulator: lp87565: Fix missing register for LP87565_BUCK_0 2020-01-27 14:50:32 +01:00
ltc3589.c
ltc3676.c regulator: ltc3676: Assure PGOOD mask is set before changing voltage 2018-05-02 06:00:20 +09:00
max1586.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
max8649.c
max8660.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
max8907-regulator.c regulator: max8907: Fix the usage of uninitialized variable in max8907_regulator_probe() 2019-12-31 16:34:56 +01:00
max8925-regulator.c
max8952.c regulator: max8952: Pass descriptor instead of GPIO number 2018-05-24 16:50:36 +01:00
max8973-regulator.c regulator: max8973: Pass descriptor instead of GPIO number 2018-05-24 16:50:25 +01:00
max8997-regulator.c regulator: maxim: Add SPDX license identifiers 2018-08-08 10:52:50 +01:00
max8998.c regulator: maxim: Add SPDX license identifiers 2018-08-08 10:52:50 +01:00
max14577-regulator.c regulator: maxim: Add SPDX license identifiers 2018-08-08 10:52:50 +01:00
max77620-regulator.c regulator: max77620: Use device_set_of_node_from_dev() 2021-06-16 11:55:00 +02:00
max77686-regulator.c regulator: maxim: Add SPDX license identifiers 2018-08-08 10:52:50 +01:00
max77693-regulator.c regulator: maxim: Add SPDX license identifiers 2018-08-08 10:52:50 +01:00
max77802-regulator.c regulator: max77802: Bounds check regulator id against opmode 2023-03-11 16:31:47 +01:00
mc13xxx-regulator-core.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
mc13xxx.h
mc13783-regulator.c regulator: Updates for v4.18 2018-06-08 13:08:57 -07:00
mc13892-regulator.c regulator: Updates for v4.18 2018-06-08 13:08:57 -07:00
mt6311-regulator.c
mt6311-regulator.h
mt6323-regulator.c
mt6380-regulator.c
mt6397-regulator.c
of_regulator.c regulator: of: Fix refcount leak bug in of_get_regulation_constraints() 2022-08-25 11:15:02 +02:00
palmas-regulator.c drivers/regulator: fix a missing check of return value 2019-12-05 09:20:39 +01:00
pbias-regulator.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
pcap-regulator.c
pcf50633-regulator.c
pfuze100-regulator.c regulator: pfuze100: Fix the global-out-of-bounds access in pfuze100_regulator_probe() 2022-09-28 11:02:52 +02:00
pv88060-regulator.c regulator: pv88060: Fix array out-of-bounds access 2020-01-27 14:50:25 +01:00
pv88060-regulator.h
pv88080-regulator.c regulator: pv88080: Fix array out-of-bounds access 2020-01-27 14:50:25 +01:00
pv88080-regulator.h
pv88090-regulator.c regulator: pv88090: Fix array out-of-bounds access 2020-01-27 14:50:25 +01:00
pv88090-regulator.h
pwm-regulator.c regulator: pwm-regulator: Add validity checks in continuous .get_voltage 2024-03-01 13:06:09 +01:00
qcom-rpmh-regulator.c regulator: add QCOM RPMh regulator driver 2018-08-10 17:30:29 +01:00
qcom_rpm-regulator.c regulator: qcom_rpm: Fix circular deferral regression 2022-10-26 13:19:21 +02:00
qcom_smd-regulator.c regulator: qcom_smd: fix for_each_child.cocci warnings 2022-04-15 14:14:42 +02:00
qcom_spmi-regulator.c regulator: qcom_spmi: Indent with tabs instead of spaces 2018-07-20 17:40:57 +01:00
rc5t583-regulator.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
rk808-regulator.c regulator: rk808: Lower log level on optional GPIOs being not available 2020-02-24 08:34:40 +01:00
rn5t618-regulator.c regulator: rn5t618: fix module aliases 2020-01-12 12:17:18 +01:00
rt5033-regulator.c
s2mpa01.c regulator: s2mpa01: Fix step values for some LDOs 2019-03-23 20:09:58 +01:00
s2mps11.c regulator: s2mps11: Fix buck7 and buck8 wrong voltages 2019-07-26 09:14:22 +02:00
s5m8767.c regulator: s5m8767: Bounds check id indexing into arrays 2023-03-11 16:31:48 +01:00
sc2731-regulator.c
sky81452-regulator.c
stm32-vrefbuf.c
stw481x-vmmc.c
sy8106a-regulator.c regulator: add support for SY8106A regulator 2018-05-09 18:25:06 +09:00
ti-abb-regulator.c regulator: ti-abb: Fix array out of bound read access on the first transition 2020-11-24 13:27:23 +01:00
tps6105x-regulator.c
tps6507x-regulator.c
tps6524x-regulator.c
tps6586x-regulator.c regulator: tps6586x: Add support for TPS658624 2018-04-20 11:44:34 +01:00
tps51632-regulator.c
tps62360-regulator.c
tps65023-regulator.c
tps65086-regulator.c regulator: tps65086: Fix tps65086_ldoa1_ranges for selector 0xB 2020-01-27 14:50:33 +01:00
tps65090-regulator.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
tps65132-regulator.c
tps65217-regulator.c regulator: tps65217: Fix NULL pointer dereference on probe 2018-07-30 09:41:04 +01:00
tps65218-regulator.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
tps65910-regulator.c regulator: tps65910: fix a missing check of return value 2019-12-05 09:20:46 +01:00
tps65912-regulator.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
tps80031-regulator.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
twl-regulator.c regulator: Don't return or expect -errno from of_map_mode() 2018-04-20 12:45:36 +01:00
twl6030-regulator.c regulator: twl6030: fix get status of twl6032 regulators 2022-12-14 11:28:26 +01:00
uniphier-regulator.c regulator: uniphier: Add missing MODULE_DEVICE_TABLE 2021-07-20 16:15:43 +02:00
userspace-consumer.c
vctrl-regulator.c
vexpress-regulator.c
virtual.c
wm831x-dcdc.c regulator: wm831x-dcdc: Fix list of wm831x_dcdc_ilim from mA to uA 2020-01-27 14:50:28 +01:00
wm831x-isink.c
wm831x-ldo.c
wm8350-regulator.c regulator: wm8350: fix missing increment of loop index i 2018-04-23 12:26:05 +01:00
wm8400-regulator.c
wm8994-regulator.c regulator: wm8994: Fix shared GPIOs 2018-05-30 15:17:03 +01:00