OSDN Git Service

regulator: arizona-micsupp: Use PROBE_FORCE_SYNCHRONOUS
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 23 Mar 2023 13:20:47 +0000 (13:20 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 23 Mar 2023 13:50:59 +0000 (13:50 +0000)
commitb65a0a8edba2c0a03e8fdb03b6807132e4166483
tree3f9d030c9c517f3bb3eb82acb83b068a6c133fb1
parent557de8d84ae4988b08339032d2f405ef5057e82b
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: 259b93b21a9f ("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>
drivers/regulator/arizona-micsupp.c