]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
OMAPDSS: dra7-tpd12s015: lock i2c adapter when using DDC
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 26 May 2015 09:59:20 +0000 (12:59 +0300)
committerJyri Sarha <jsarha@ti.com>
Wed, 27 May 2015 11:43:03 +0000 (14:43 +0300)
commit9bd88bbbbc64e6ba2e86cf4ad92e3aaade896292
tree3d0d714397a74686b52fac1036407164b0b935ca
parentbf0bd1f57a5eab913bfd81da002caea560a8db81
OMAPDSS: dra7-tpd12s015: lock i2c adapter when using DDC

On DRA7 the i2c2 bus is shared between i2c and DDC modes. At the moment
the TPD12S015 driver can switch the muxing at any time, which could lead
to an i2c device getting transfer errors if it is using i2c2 bus.

This patch solves the issue by making TPD12S015 driver use
i2c_lock_adapter() when the pins are in DDC mode.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Tested-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
arch/arm/boot/dts/dra7-evm.dts
drivers/video/fbdev/omap2/displays-new/dra7-evm-encoder-tpd12s015.c