1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-05 05:16:34 +01:00
Files
u-boot-megous/include
Jonas Karlman d99fb64a98 power: regulator: Only run autoset once for each regulator
With the commit 4fcba5d556 ("regulator: implement basic reference
counter"), keeping regulator enablement in balance become more important.
Calling regulator_autoset multiple times on a fixed regulator increase
the enable count for each call, resulting in an unbalanced enable count.

Introduce a AUTOSET_DONE flag and use it to mark that autoset has run
for the regulator. Return -EALREADY on any subsequent call to autoset.

This fixes so that the enable count is only ever increased by one per
regulator for autoset.

Fixes: 4fcba5d556 ("regulator: implement basic reference counter")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-10-07 16:49:41 +08:00
..
2023-10-02 10:55:44 -04:00
2023-05-05 17:48:44 -04:00
2022-10-30 20:07:16 +01:00
2022-01-19 18:11:34 +01:00
2022-09-29 16:07:57 -04:00
2023-02-07 14:33:50 -05:00
2022-09-24 10:47:01 -04:00
2023-08-25 13:54:33 -04:00
2022-07-26 02:30:56 -06:00
2022-01-19 18:11:34 +01:00
2021-01-15 14:36:12 -05:00
2023-08-08 10:22:03 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-30 01:25:00 +00:00
2022-01-30 01:25:00 +00:00
2022-01-19 18:11:34 +01:00
2023-02-09 16:32:25 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-08-11 07:33:40 -06:00
2022-01-19 18:11:34 +01:00
2023-07-17 15:38:11 -04:00
2022-01-19 18:11:34 +01:00
2022-04-06 14:01:42 -04:00
2023-08-19 04:12:53 +02:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2021-01-30 14:25:42 -07:00
2022-11-02 08:42:03 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-02-19 21:15:15 +01:00
2023-02-06 13:04:52 -05:00
2023-02-09 16:32:25 -05:00
2022-03-15 16:19:29 -04:00
2022-04-06 14:01:42 -04:00
2023-10-02 10:55:44 -04:00
2023-05-02 14:23:34 -04:00
2022-01-19 18:11:34 +01:00
2023-05-15 10:00:30 +02:00
2022-10-18 09:32:53 +08:00
2023-01-20 12:27:06 -05:00
2021-07-07 19:52:22 -04:00
2022-07-26 11:29:00 +02:00
2021-04-10 08:04:42 -04:00
2020-10-30 10:56:11 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-06-08 13:59:53 -04:00
2022-01-19 18:11:34 +01:00
2021-08-30 14:13:28 -04:00
2023-04-27 13:51:06 -04:00
2022-07-26 11:29:02 +02:00
2022-01-19 18:11:34 +01:00
2023-01-27 14:47:57 -05:00
2022-01-19 18:11:34 +01:00
2023-08-19 04:12:53 +02:00
2022-01-19 18:11:34 +01:00
2022-04-28 09:26:44 -04:00
2022-10-30 20:07:17 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-24 10:35:10 -05:00
2021-09-28 12:03:20 -04:00
2023-03-02 17:45:58 -05:00
2022-06-08 14:00:22 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-09-11 16:27:49 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-01-16 18:01:10 +08:00
2022-12-09 14:10:28 -05:00
2022-01-19 18:11:34 +01:00
2022-04-01 15:03:13 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-09-13 12:08:40 -04:00
2022-10-16 12:23:22 +02:00
2022-01-19 18:11:34 +01:00
2023-10-02 10:55:44 -04:00
2022-04-06 14:03:17 -04:00
2022-09-24 10:47:01 -04:00
2023-02-10 07:41:40 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-12-07 16:04:17 -05:00
2022-12-22 10:31:49 -05:00
2022-12-22 10:31:49 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-09-04 10:51:58 -04:00
2022-01-19 18:11:34 +01:00
2022-09-18 10:26:49 +02:00
2022-01-19 18:11:34 +01:00
2021-01-15 14:36:12 -05:00