[media] rtl2832: change the i2c gate to be mux-locked
authorPeter Rosin <peda@axentia.se>
Wed, 4 May 2016 20:15:33 +0000 (22:15 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 4 May 2016 20:40:02 +0000 (22:40 +0200)
commit1cf79db28ef53aeaa66a825e8f788d19fdd8648f
tree4305291ca3e397db16543db6ae61f94f976ab603
parente6d7ffcdf15f40fc1cff7a3c2fd2720ce3d53e49
[media] rtl2832: 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 regmap overrides
that makes the i2c accesses unlocked and use plain old regmap
accesses. This also removes the need for the regmap wrappers used by
rtl2832_sdr, so deconvolute the code further and provide the regmap
handle directly instead of the wrapper functions.

Tested-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/rtl2832.c
drivers/media/dvb-frontends/rtl2832.h
drivers/media/dvb-frontends/rtl2832_sdr.c
drivers/media/dvb-frontends/rtl2832_sdr.h
drivers/media/usb/dvb-usb-v2/rtl28xxu.c