]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: interface: fix timesync registration sequencing
authorDavid Lin <dtwlin@google.com>
Fri, 5 Aug 2016 22:08:40 +0000 (15:08 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 6 Aug 2016 09:08:48 +0000 (11:08 +0200)
commit4523eae6f8446e3943415683bc9a136ce11fb32b
tree6547b69c61c60d77b67521c99ca0fe9b95267ef3
parent33cc283928249b2230a6519a2303fe30161cf788
greybus: interface: fix timesync registration sequencing

When enabling an interface, control device should be registered after
having successfully added the timesync. Similarly for the interface
disable path, control device should be removed first before removing
timesync.

Testing Done:
 - Enable and disable the interface

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Suggested-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: David Lin <dtwlin@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c