]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: camera: Create and destroy data connection on demand
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 14 Jun 2016 12:59:25 +0000 (15:59 +0300)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 15 Jun 2016 12:05:47 +0000 (05:05 -0700)
commit9120b9060bca4528d13de5c4e6522e6a78110704
tree5197c0bd83ba9c1125deb0b09d94d1d665848cb9
parent3b8ebfeb32daf13ef5fccb7ec3d163783e6a01a2
greybus: camera: Create and destroy data connection on demand

Creating the data connection at probe time makes it impossible to
support multiple inserted camera modules as they would all try to
establish a data connection to the same CPort on the AP side. Create and
destroy the data connection when configuring the streams instead, as a
single module can be streaming at a time.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Gjorgji Rosikopulos <grosikopulos@mm-sol.com>
Tested-by: Gjorgji Rosikopulos <grosikopulos@mm-sol.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c