greybus: es2: add support for CDSI1 allocation
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 11 May 2016 08:18:04 +0000 (10:18 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 13 May 2016 13:32:48 +0000 (15:32 +0200)
commit045d356114557781f4b703ff569f2e3785e87b2e
treee1c83cb4f6cad830fdebe276e77f2d22325f19ee
parente7b848c288dbcfb4b153ca5c772c8573caf739fb
greybus: es2: add support for CDSI1 allocation

Use the new CPort-allocation callbacks to allow for rudimentary resource
management of the CDSI CPorts.

How to manage offloaded resources in a generic fashion is yet to be
determined, but this minimal implementation will allow core to manage
the camera data connection so that the current camera-driver hacks can
be removed. This is specifically required to be able to implement proper
connection closing and for power management.

Note that the CDSI CPorts can not (currently) be reset through the
USB vendor request.

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/connection.h
drivers/staging/greybus/es2.c