summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorDaniel Scheller <d.scheller@gmx.net>2017-04-09 22:38:11 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-20 15:39:27 +0300
commit725e93eba1769b61545da06366be908eedd688a0 (patch)
tree38e635be44b2f975747b518391320066ac412340 /certs
parent5d6d93a123c76ffd73667e87483756f0deb41214 (diff)
downloadlinux-725e93eba1769b61545da06366be908eedd688a0.tar.xz
[media] dvb-frontends/cxd2841er: do I2C reads in one go
Doing the I2C read operation with two calls to i2c_transfer() causes the exclusive I2C bus lock of the underlying adapter to be released. While this isn't an issue if only one demodulator is attached to the bus, having two or even more causes troubles in that concurrent accesses to the different demods will cause all kinds of issues due to wrong data being returned on read operations (for example, the TS config register will be set wrong). This changes the read_regs() function to do the operation in one go (by calling i2c_transfer with the whole msg list instead of one by one) to not loose the I2C bus lock, fixing all sorts of random runtime failures. Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Acked-by: Abylay Ospan <aospan@netup.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions