diff options
author | Bjorn Andersson <[email protected]> | 2021-03-11 16:22:51 -0800 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2021-07-28 14:57:30 -0500 |
commit | 1fcef985c8bdd542c43da0d87bd9d51980c3859b (patch) | |
tree | 16a3d732f1ae2a2b89a252a06f4d274868f04053 /lib/test_overflow.c | |
parent | e73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff) |
remoteproc: qcom: wcnss: Fix race with iris probe
The remoteproc driver is split between the responsibilities of getting
the SoC-internal ARM core up and running and the external RF (aka
"Iris") part configured.
In order to satisfy the regulator framework's need of a struct device *
to look up supplies this was implemented as two different drivers, using
of_platform_populate() in the remoteproc part to probe the iris part.
Unfortunately it's possible that the iris part probe defers on yet not
available regulators and an attempt to start the remoteproc will have to
be rejected, until this has been resolved. But there's no useful
mechanism of knowing when this would be.
Instead replace the of_platform_populate() and the iris probe with a
function that rolls its own struct device, with the relevant of_node
associated that is enough to acquire regulators and clocks specified in
the DT node and that may propagate the EPROBE_DEFER back to the wcnss
device's probe.
Acked-by: Mathieu Poirier <[email protected]>
Reported-by: Anibal Limon <[email protected]>
Reported-by: Loic Poulain <[email protected]>
Tested-by: Anibal Limon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions