greybus: interface: hibernate UniPro link in activation error path
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 20 Jul 2016 14:40:27 +0000 (16:40 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 20 Jul 2016 17:16:54 +0000 (10:16 -0700)
commit4f7e413b2d2d2825dbb36b73f06e69514022b132
tree56ec9da990c1c43c21a3f7f962cc7343faa6cd98
parente21e6bad3f425e8bc74186f3ab1e21cd40f7a208
greybus: interface: hibernate UniPro link in activation error path

To be well-behaved, we should hibernate the link before disabling UniPro
in case the link has already been established (i.e. when the interface
type has been detected as UniPro or Greybus).

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Sandeep Patil <sspatil@google.com>
Reviewed-by: Patrick Titiano <ptitiano@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c