Oliver Barta
6e7015d982
regulator: core: fix false positive in regulator_late_cleanup()
...
[ Upstream commit 4e2a354e37 ]
The check done by regulator_late_cleanup() to detect whether a regulator
is on was inconsistent with the check done by _regulator_is_enabled().
While _regulator_is_enabled() takes the enable GPIO into account,
regulator_late_cleanup() was not doing that.
This resulted in a false positive, e.g. when a GPIO-controlled fixed
regulator was used, which was not enabled at boot time, e.g.
reg_disp_1v2: reg_disp_1v2 {
compatible = "regulator-fixed";
regulator-name = "display_1v2";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
gpio = <&tlmm 148 0>;
enable-active-high;
};
Such regulator doesn't have an is_enabled() operation. Nevertheless
it's state can be determined based on the enable GPIO. The check in
regulator_late_cleanup() wrongly assumed that the regulator is on and
tried to disable it.
Signed-off-by: Oliver Barta <oliver.barta@aptiv.com >
Link: https://lore.kernel.org/r/20220208084645.8686-1-oliver.barta@aptiv.com
Signed-off-by: Mark Brown <broonie@kernel.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-03-08 19:09:29 +01:00
..
2020-08-21 17:28:09 +01:00
2020-05-08 18:18:13 +01:00
2020-06-25 20:11:13 +01:00
2020-05-08 18:18:13 +01:00
2020-05-08 18:18:13 +01:00
2020-06-18 13:47:31 +01:00
2020-05-08 18:18:13 +01:00
2020-05-08 18:18:13 +01:00
2020-05-08 18:18:13 +01:00
2020-05-08 18:18:13 +01:00
2021-03-04 11:37:58 +01:00
2020-05-08 18:18:13 +01:00
2021-06-16 12:01:43 +02:00
2021-04-14 08:42:05 +02:00
2021-05-14 09:50:10 +02:00
2020-05-08 18:18:13 +01:00
2020-05-08 18:18:13 +01:00
2022-03-08 19:09:29 +01:00
2020-06-25 20:11:16 +01:00
2021-06-23 14:42:47 +02:00
2020-06-25 15:29:21 +01:00
2021-07-14 16:55:56 +02:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-05-06 15:16:59 +01:00
2020-08-21 17:38:49 +01:00
2020-07-08 17:37:54 +01:00
2020-09-14 14:24:36 +01:00
2020-08-21 17:28:11 +01:00
2021-07-14 16:56:06 +02:00
2020-09-14 14:24:37 +01:00
2020-07-20 16:31:54 +01:00
2020-06-12 14:57:17 +01:00
2021-07-14 16:56:09 +02:00
2021-07-28 14:35:36 +02:00
2020-07-22 14:43:48 +01:00
2020-09-28 19:26:32 +01:00
2020-09-07 18:49:13 +01:00
2020-07-22 14:43:48 +01:00
2020-09-07 18:35:25 +01:00
2020-05-08 18:18:13 +01:00
2020-07-22 14:43:48 +01:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-09-28 19:26:32 +01:00
2020-08-21 17:28:14 +01:00
2020-06-18 13:47:34 +01:00
2020-06-18 13:47:35 +01:00
2020-06-26 15:34:18 +01:00
2020-06-25 20:11:17 +01:00
2021-06-16 12:01:43 +02:00
2020-05-08 18:18:13 +01:00
2020-08-21 17:28:15 +01:00
2020-05-08 18:18:13 +01:00
2020-08-24 14:17:53 +01:00
2020-02-17 19:13:26 +00:00
2020-05-08 18:18:13 +01:00
2020-05-08 18:18:13 +01:00
2021-07-14 16:55:56 +02:00
2020-08-27 14:55:44 +01:00
2020-05-08 18:18:13 +01:00
2020-07-02 15:25:45 +01:00
2020-07-08 17:37:53 +01:00
2020-05-08 18:18:13 +01:00
2020-07-22 14:43:48 +01:00
2021-03-25 09:04:14 +01:00
2020-11-11 12:34:27 +00:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-10-05 16:54:56 +01:00
2020-07-01 18:33:14 +01:00
2022-01-27 10:54:20 +01:00
2020-10-01 21:25:23 +01:00
2020-08-18 18:38:25 +01:00
2020-10-01 21:43:16 +01:00
2021-03-30 14:31:51 +02:00
2020-05-08 18:18:13 +01:00
2021-03-04 11:38:07 +01:00
2020-08-18 17:18:42 +01:00
2021-06-23 14:42:48 +02:00
2021-08-08 09:05:22 +02:00
2020-05-08 18:18:13 +01:00
2021-11-18 14:03:45 +01:00
2020-05-08 18:18:13 +01:00
2020-09-17 18:25:39 +01:00
2020-08-21 17:28:20 +01:00
2020-08-21 17:28:17 +01:00
2020-08-21 17:28:18 +01:00
2020-09-07 18:35:25 +01:00
2020-09-14 14:24:38 +01:00
2020-08-21 17:28:19 +01:00
2020-08-18 17:18:40 +01:00
2020-11-18 17:59:24 +00:00
2020-09-01 15:48:52 +01:00
2020-07-22 14:43:48 +01:00
2020-09-01 15:48:56 +01:00
2020-09-01 15:48:51 +01:00
2020-09-01 15:48:53 +01:00
2020-08-21 17:28:21 +01:00
2020-09-01 15:48:54 +01:00
2020-09-01 15:48:55 +01:00
2020-07-22 14:43:48 +01:00
2020-07-22 14:43:48 +01:00
2021-09-15 09:50:23 +02:00
2020-09-01 15:48:56 +01:00
2020-04-14 16:57:44 +01:00
2020-08-23 17:36:59 -05:00
2020-05-08 18:18:13 +01:00
2021-07-14 16:55:50 +02:00
2021-09-15 09:50:30 +02:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-09-07 18:35:25 +01:00
2020-06-26 15:34:24 +01:00