Skip to content

Commit 557de8d

Browse files
charleskeepaxbroonie
authored andcommitted
regulator: arizona-ldo1: Use PROBE_FORCE_SYNCHRONOUS
Restore synchronous probing for Arizona regulators because otherwise the main MFD driver will not find its core supplies. As these regulators are built into the CODEC and typically have no DT representation the regulator framework is unaware of their existence until the driver probes. These means the probing of the driver needs to be synchronous to ensure the regulators are not substitued for the dummy later when the users request them. Fixes: 259b93b ("regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in 4.14") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230323132047.833737-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent eef644d commit 557de8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/regulator/arizona-ldo1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static struct platform_driver arizona_ldo1_driver = {
380380
.remove = arizona_ldo1_remove,
381381
.driver = {
382382
.name = "arizona-ldo1",
383-
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
383+
.probe_type = PROBE_FORCE_SYNCHRONOUS,
384384
},
385385
};
386386

@@ -389,7 +389,7 @@ static struct platform_driver madera_ldo1_driver = {
389389
.remove = arizona_ldo1_remove,
390390
.driver = {
391391
.name = "madera-ldo1",
392-
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
392+
.probe_type = PROBE_FORCE_SYNCHRONOUS,
393393
},
394394
};
395395

0 commit comments

Comments
 (0)