All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] soc-camera: Make clock start and stop operations optional
@ 2015-03-09  6:39 Laurent Pinchart
  2015-03-09  6:39 ` [PATCH 1/4] soc-camera: Unregister v4l2 clock in the OF bind error path Laurent Pinchart
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Laurent Pinchart @ 2015-03-09  6:39 UTC (permalink / raw)
  To: linux-media; +Cc: Guennadi Liakhovetski, Josh Wu

Hello,

This patch set makes the soc-camera host clock_start and clock_stop operations
optional and remove the empty stubs from the rcar-vin driver.

The rationale behind the change is that clock_start and clock_stop are
supposed to control a clock output supplied to the sensor, exposed through a
v4l2 clock. While some drivers abuse it to start/stop video streaming on the
host side and should be fixed, other drivers that behave correctly currently
have to implement stubs if the video hardware doesn't have a clock output.

The last patch in the series skips v4l2 clock registration completely if the
clock operations are not provided, as that v4l2 clock is a no-op. This could
introduce breakage and thus needs to be reviewed and tested carefully. I've
included the patch last to make it easy to skip it for now and only apply the
rest.

Laurent Pinchart (4):
  soc-camera: Unregister v4l2 clock in the OF bind error path
  soc-camera: Make clock_start and clock_stop operations optional
  rcar-vin: Don't implement empty optional clock operations
  soc-camera: Skip v4l2 clock registration if host doesn't provide clk
    ops

 drivers/media/platform/soc_camera/rcar_vin.c   |  15 ----
 drivers/media/platform/soc_camera/soc_camera.c | 113 +++++++++++++++----------
 2 files changed, 67 insertions(+), 61 deletions(-)

-- 
Regards,

Laurent Pinchart


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-16  7:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-09  6:39 [PATCH 0/4] soc-camera: Make clock start and stop operations optional Laurent Pinchart
2015-03-09  6:39 ` [PATCH 1/4] soc-camera: Unregister v4l2 clock in the OF bind error path Laurent Pinchart
2015-03-09  6:39 ` [PATCH 2/4] soc-camera: Make clock_start and clock_stop operations optional Laurent Pinchart
2015-03-09  6:39 ` [PATCH 3/4] rcar-vin: Don't implement empty optional clock operations Laurent Pinchart
2015-03-09  6:39 ` [PATCH/RFC 4/4] soc-camera: Skip v4l2 clock registration if host doesn't provide clk ops Laurent Pinchart
2015-03-15 17:56   ` Guennadi Liakhovetski
2015-03-16  0:00     ` Laurent Pinchart
2015-03-16  7:43       ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.