greybus: camera: Clean up on stream configuration failure
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 14 Jun 2016 12:59:23 +0000 (15:59 +0300)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 15 Jun 2016 12:05:47 +0000 (05:05 -0700)
commitf3d5f6613f0da3ba1135f6e06b9692202fb9920b
tree15cbff4240bba6ba26424e22aea6c15c194d8b76
parentd1a8c36ec10446c3584033b06beaa51bad188144
greybus: camera: Clean up on stream configuration failure

When the camera pipeline can't be configured due to a failure of one of
the components (failure to start the CSI transmitter for instance),
components that have already been setup for video streaming need to be
set back to a quiescient state. This is especially important to ensure
that a stream configuration failure won't keep the UniPro links in high
speed mode forever.

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