diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2016-07-15 18:01:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-07-16 08:01:17 +0900 |
commit | fddd7eafc746e5ad6ea0f980e85a3fdc87091e81 (patch) | |
tree | ebf9d215d12921a733d037f900e3e66195106f92 /drivers/staging/greybus | |
parent | 1f77b363bef417e28d8556a11c9a82f3e6cf24f0 (diff) |
greybus: timesync/pm: Make synchronous call to restore FrameTime
When we discussed and agreed a serialized way to-do PM runtime
suspend/resume we omitted the necessity to restore the FrameTime on resume.
This patch restores the FrameTime synchronously such that when an Interface
PM resume callback completes we have either successfully restored the
FrameTime including the new Interface or we've produced a result code to
indicate what went wrong when trying.
Suggested-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Tested-by: David Lin <dtwlin@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/interface.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c index 16e268f1b109..b3bd96e43128 100644 --- a/drivers/staging/greybus/interface.c +++ b/drivers/staging/greybus/interface.c @@ -579,6 +579,12 @@ static int gb_interface_resume(struct device *dev) return ret; } + ret = gb_timesync_schedule_synchronous(intf); + if (ret) { + dev_err(dev, "failed to synchronize FrameTime: %d\n", ret); + return ret; + } + return 0; } |