greybus: camera-gb: Implement camera module reference counting as subject.
In explanation: The main idea for implementing reference counting is to not block exit until any other modules are in use. Camera responsibility is to handle properly any additional calls after camera exit and that what this patch is doing: 1. Free camera module when reference count is zero. 2. After camera cleanup handle properly any additional ongoing transaction. Return error if connection is destroyed. Signed-off-by: NEvgeniy Borisov <eborisov@mm-sol.com> Reviewed-by: NGjorgji Rosikopulos <grosikopulos@mm-sol.com> Reviewed-by: NLaurent Pinchart <laurent.pinchart@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
Showing
想要评论请 注册 或 登录