greybus: svc: keep interfaces registered during mode switch
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 13 Apr 2016 17:19:08 +0000 (19:19 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Apr 2016 01:09:03 +0000 (10:09 +0900)
commit96fb6c340b4abb295ae5c7e904befef33a1d0325
tree76e6dad2e2fa1f88f166b1c759791c62ef03d153
parent87a4c819a545e41eacab0de1e250173963dacbf8
greybus: svc: keep interfaces registered during mode switch

Keep a detected interface registered until it is physically removed.
Specifically, do not re-register an interface that is switching mode.

Note that this also allows us to get rid of some nasty hacks from core.
The Ara VID/PID bootrom hack for ES2 will continue to work, but is now
mostly confined to the bootrom driver.

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