Skip to content

Commit b65a0a8

Browse files
charleskeepaxbroonie
authored andcommitted
regulator: arizona-micsupp: Use PROBE_FORCE_SYNCHRONOUS
Restore synchronous probing for Arizona regulators as the main MFD relies on the ordering of the devices probing. 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-2-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 557de8d commit b65a0a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/regulator/arizona-micsupp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,15 @@ static struct platform_driver arizona_micsupp_driver = {
365365
.probe = arizona_micsupp_probe,
366366
.driver = {
367367
.name = "arizona-micsupp",
368-
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
368+
.probe_type = PROBE_FORCE_SYNCHRONOUS,
369369
},
370370
};
371371

372372
static struct platform_driver madera_micsupp_driver = {
373373
.probe = madera_micsupp_probe,
374374
.driver = {
375375
.name = "madera-micsupp",
376-
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
376+
.probe_type = PROBE_FORCE_SYNCHRONOUS,
377377
},
378378
};
379379

0 commit comments

Comments
 (0)