mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
greybus: timesync: probe shouldn't complete until FrameTime sync does
Currently the probe() function contains the asynchronous() variant of FrameTime synchronization. This patch converts to the synchronous() version of synchronization. This is required for two reasons first a probe() cannot reasonably be considered to be complete without successfully completing a time synchronization for Interfaces that care about that sync. Secondly scheduling the operation asynchronously means its possible the PM-runtime suspend() path can execute before the async timesync operation completes. For both reasons we want to run synchronization - synchronously. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
346bae656e
commit
10a24b7c09
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ static int greybus_probe(struct device *dev)
|
|||
return retval;
|
||||
}
|
||||
|
||||
gb_timesync_schedule_asynchronous(bundle->intf);
|
||||
gb_timesync_schedule_synchronous(bundle->intf);
|
||||
|
||||
pm_runtime_put(&bundle->intf->dev);
|
||||
|
||||
|
|
Loading…
Reference in a new issue