[media] si2168: change the i2c gate to be mux-locked
authorAntti Palosaari <crope@iki.fi>
Wed, 4 May 2016 20:15:32 +0000 (22:15 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 4 May 2016 20:39:31 +0000 (22:39 +0200)
commite6d7ffcdf15f40fc1cff7a3c2fd2720ce3d53e49
treedcc3cc9ec64915e25b6bcc03956abb8178bc0dfe
parent1ffcfaf19597ad26797aac3ab42d8ba6e548ef0a
[media] si2168: change the i2c gate to be mux-locked

The root i2c adapter lock is then no longer held by the i2c mux during
accesses behind the i2c gate, and such accesses need to take that lock
just like any other ordinary i2c accesses do.

So, declare the i2c gate mux-locked, and zap the code that makes the
i2c accesses unlocked. But add a mutex so that firmware commands are
still serialized.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/i2c/i2c-topology
drivers/media/dvb-frontends/si2168.c
drivers/media/dvb-frontends/si2168_priv.h