[media] tc358743: Do not read number of CSI lanes in use from chip
authorMats Randgaard <matrandg@cisco.com>
Tue, 6 Dec 2016 10:24:27 +0000 (08:24 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 13:14:40 +0000 (11:14 -0200)
commit59e34ba82aebf75ea70508a114ada1ed3ca0df7c
treeb1d2ed0b779ad1ce6dc2c06c390136bdeded6a96
parent10106c13f444e3b5adf435d8c12e207f109f469c
[media] tc358743: Do not read number of CSI lanes in use from chip

The number of CSI lanes that should be used is set to the CSI_CONTROL
register by indirectly writing to the CSI_CONFW register. When the
number of lanes is read back from the CSI_CONTROL register the value
is usually correct, but we have seen that it suddenly is 1 for a short
moment before the correct value is restored again.

Toshiba have not figured out why that happen, but we have found it
safer to store the value in the driver.

Signed-off-by: Mats Randgaard <matrandg@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/tc358743.c