Watch
1
Fork
You've already forked kernel_a52xq
0
mirror of https://github.com/a52xq-dev/kernel.git synced 2026-10-19 06:08:12 +07:00
kernel_a52xq/include/linux/regulator
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stephan Gerhold 50b55230ed regulator: ab8500: Remove AB8505 USB regulator
commit 99c4f70df3a6446c56ca817c2d0f9c12d85d4e7c upstream.

The USB regulator was removed for AB8500 in
commit 41a06aa738 ("regulator: ab8500: Remove USB regulator").
It was then added for AB8505 in
commit 547f384f33 ("regulator: ab8500: add support for ab8505").

However, there was never an entry added for it in
ab8505_regulator_match. This causes all regulators after it
to be initialized with the wrong device tree data, eventually
leading to an out-of-bounds array read.

Given that it is not used anywhere in the kernel, it seems
likely that similar arguments against supporting it exist for
AB8505 (it is controlled by hardware).

Therefore, simply remove it like for AB8500 instead of adding
an entry in ab8505_regulator_match.

Fixes: 547f384f33 ("regulator: ab8500: add support for ab8505")
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20191106173125.14496-1-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-09 10:19:05 +01:00
..
ab8500.h regulator: ab8500: Remove AB8505 USB regulator 2020-01-09 10:19:05 +01:00
act8865.h
arizona-ldo1.h regulator: arizona-ldo1: Look up a descriptor and pass to the core 2018-05-17 15:42:53 +09:00
arizona-micsupp.h
consumer.h regulator: Fix return value of _set_load() stub 2019-12-13 08:51:28 +01:00
da9211.h regulator: da9211: Pass descriptors instead of GPIO numbers 2018-02-16 17:05:52 +00:00
db8500-prcmu.h
driver.h regulator: core: Change suspend_late to suspend 2018-07-05 18:07:45 +01:00
fan53555.h
fixed.h regulator: gpio: Revert 2018-06-07 14:23:08 +01:00
gpio-regulator.h regulator: gpio: Revert 2018-06-07 14:23:08 +01:00
lp872x.h
lp3971.h
lp3972.h
machine.h regulator: Fix 'do-nothing' value for regulators without suspend state 2018-09-03 16:10:40 +01:00
max1586.h
max8649.h
max8660.h
max8952.h regulator: max8952: Pass descriptor instead of GPIO number 2018-05-24 16:50:36 +01:00
max8973-regulator.h
mt6311.h
mt6323-regulator.h
mt6380-regulator.h regulator: mt6380: Add support for MT6380 2017-08-15 12:50:48 +01:00
mt6397-regulator.h
of_regulator.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pfuze100.h regulator: pfuze100: add pfuze3001 support 2018-06-18 12:22:39 +01:00
tps6507x.h
tps51632-regulator.h
tps62360.h
userspace-consumer.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00