Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

André Draszik and committed by
Lee Jones
fa72a842 bfacd34f

+10 -10
+10 -10
include/linux/mfd/samsung/s2mpg10.h
··· 407 407 408 408 /* S2MPG10 regulator IDs */ 409 409 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, 410 420 S2MPG10_LDO1, 411 421 S2MPG10_LDO2, 412 422 S2MPG10_LDO3, ··· 448 438 S2MPG10_LDO29, 449 439 S2MPG10_LDO30, 450 440 S2MPG10_LDO31, 451 - S2MPG10_BUCK1, 452 - S2MPG10_BUCK2, 453 - S2MPG10_BUCK3, 454 - S2MPG10_BUCK4, 455 - S2MPG10_BUCK5, 456 - S2MPG10_BUCK6, 457 - S2MPG10_BUCK7, 458 - S2MPG10_BUCK8, 459 - S2MPG10_BUCK9, 460 - S2MPG10_BUCK10, 461 441 S2MPG10_REGULATOR_MAX, 462 442 }; 463 443