diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2011-04-29 14:33:57 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:46:17 -0800 |
commit | c3da19c93b2a92cc1a5422ae75302869e32dbefe (patch) | |
tree | 73fe4e9b1fe77c01ef95b9b6201577c5944faa92 /arch/arm/mach-tegra/board-ventana-sensors.c | |
parent | e5f15bede0770b06e399fc3e41e00f9422cb1018 (diff) |
arm: tegra: ventana: deselect pca9546 i2c mux channel on exit
On ventana, pca9546 is used as a mux for 0v2710/ov5650 camera
sensors. With UJA0H14 version of ov5650 sensor, it is observed
that pca9546 driver incorrectly caches last channel when VDDIO_CAM
is toggled while enabling/disabling tegra camera. Deselect i2c
mux channel on exit so that i2c mux is correctly configured with
new mux channel.
BUG 812134
(cherry picked from commit 2d62e589c0bd933db846d4b8f9fe4f2116bef8ad)
Reviewed-on: http://git-master/r/29811
(cherry picked from commit c53b7eb26bee96fd7927e94848055af94baa831b)
Original-Change-Id: Ic41a952d05b610e569e37802cf05552af9d93e13
Reviewed-on: http://git-master/r/30975
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: R3e1bb9b2c39b5128bb193bb850714db94261e442
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-sensors.c')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana-sensors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-sensors.c b/arch/arm/mach-tegra/board-ventana-sensors.c index a5d62c4f56a2..d968c80cc17c 100644 --- a/arch/arm/mach-tegra/board-ventana-sensors.c +++ b/arch/arm/mach-tegra/board-ventana-sensors.c @@ -261,9 +261,9 @@ static struct pca953x_platform_data ventana_tca6416_data = { }; static struct pca954x_platform_mode ventana_pca9546_modes[] = { - { .adap_id = 6, }, /* REAR CAM1 */ - { .adap_id = 7, }, /* REAR CAM2 */ - { .adap_id = 8, }, /* FRONT CAM3 */ + { .adap_id = 6, .deselect_on_exit = 1 }, /* REAR CAM1 */ + { .adap_id = 7, .deselect_on_exit = 1 }, /* REAR CAM2 */ + { .adap_id = 8, .deselect_on_exit = 1 }, /* FRONT CAM3 */ }; static struct pca954x_platform_data ventana_pca9546_data = { |