Skip to content

Commit fa72a84

Browse files
andredlag-linaro
authored andcommitted
mfd: sec: s2mpg10: Reorder regulators for better probe performance
Bucks can reasonably be supplies for LDOs, but not the other way around. Since rail registration is going to be ordered by 'enum s2mpg10_regulators', it makes sense to specify bucks first, so that during LDO registration it is more likely that the corresponding supply is known already. This can improve probe speed, as no unnecessary deferrals and retries are required anymore. Signed-off-by: André Draszik <andre.draszik@linaro.org> Link: https://patch.msgid.link/20260122-s2mpg1x-regulators-v7-8-3b1f9831fffd@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent bfacd34 commit fa72a84

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

include/linux/mfd/samsung/s2mpg10.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,16 @@ enum s2mpg10_meter_reg {
407407

408408
/* S2MPG10 regulator IDs */
409409
enum s2mpg10_regulators {
410+
S2MPG10_BUCK1,
411+
S2MPG10_BUCK2,
412+
S2MPG10_BUCK3,
413+
S2MPG10_BUCK4,
414+
S2MPG10_BUCK5,
415+
S2MPG10_BUCK6,
416+
S2MPG10_BUCK7,
417+
S2MPG10_BUCK8,
418+
S2MPG10_BUCK9,
419+
S2MPG10_BUCK10,
410420
S2MPG10_LDO1,
411421
S2MPG10_LDO2,
412422
S2MPG10_LDO3,
@@ -438,16 +448,6 @@ enum s2mpg10_regulators {
438448
S2MPG10_LDO29,
439449
S2MPG10_LDO30,
440450
S2MPG10_LDO31,
441-
S2MPG10_BUCK1,
442-
S2MPG10_BUCK2,
443-
S2MPG10_BUCK3,
444-
S2MPG10_BUCK4,
445-
S2MPG10_BUCK5,
446-
S2MPG10_BUCK6,
447-
S2MPG10_BUCK7,
448-
S2MPG10_BUCK8,
449-
S2MPG10_BUCK9,
450-
S2MPG10_BUCK10,
451451
S2MPG10_REGULATOR_MAX,
452452
};
453453

0 commit comments

Comments
 (0)