Commit 557de8d8 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown

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: 259b93b2 ("regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in 4.14")
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230323132047.833737-1-ckeepax@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent eef644d3
...@@ -380,7 +380,7 @@ static struct platform_driver arizona_ldo1_driver = { ...@@ -380,7 +380,7 @@ static struct platform_driver arizona_ldo1_driver = {
.remove = arizona_ldo1_remove, .remove = arizona_ldo1_remove,
.driver = { .driver = {
.name = "arizona-ldo1", .name = "arizona-ldo1",
.probe_type = PROBE_PREFER_ASYNCHRONOUS, .probe_type = PROBE_FORCE_SYNCHRONOUS,
}, },
}; };
...@@ -389,7 +389,7 @@ static struct platform_driver madera_ldo1_driver = { ...@@ -389,7 +389,7 @@ static struct platform_driver madera_ldo1_driver = {
.remove = arizona_ldo1_remove, .remove = arizona_ldo1_remove,
.driver = { .driver = {
.name = "madera-ldo1", .name = "madera-ldo1",
.probe_type = PROBE_PREFER_ASYNCHRONOUS, .probe_type = PROBE_FORCE_SYNCHRONOUS,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment