diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2017-02-13 07:24:36 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-03-22 10:06:22 -0300 |
commit | fbd4676cc2930ba40d507eaadf3ff06d3eba7e6a (patch) | |
tree | eecf35f68c9fb56cdd9ce67f18b3278c7c369810 /drivers/media/i2c | |
parent | 700ea5e0e0dd70420a04e703ff264cc133834cba (diff) | |
download | linux-fbd4676cc2930ba40d507eaadf3ff06d3eba7e6a.tar.bz2 |
[media] tc358743: put lanes in STOP state before starting streaming
Without calling tc358743_set_csi after stopping streaming (or calling
tc358743_s_dv_timings or tc358743_set_fmt from userspace after stopping
the stream), the i.MX6 MIPI CSI2 input fails waiting for lanes to enter
STOP state when streaming is started again.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/tc358743.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index 140c804a6dc3..bf9d925164a3 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -1463,6 +1463,10 @@ static int tc358743_g_mbus_config(struct v4l2_subdev *sd, static int tc358743_s_stream(struct v4l2_subdev *sd, int enable) { enable_stream(sd, enable); + if (!enable) { + /* Put all lanes in PL-11 state (STOPSTATE) */ + tc358743_set_csi(sd); + } return 0; } |