diff mbox

[2/2] rtl2832: add name for RegMap

Message ID 1418936717-2806-2-git-send-email-crope@iki.fi (mailing list archive)
State New, archived
Headers show

Commit Message

Antti Palosaari Dec. 18, 2014, 9:05 p.m. UTC
Pass module name to regmap in order to silence lockdep recursive
deadlock warning. Lockdep validator groups mutexes per mutex name by
default. Due to that tuner and demod regmap mutexes were seen as a
single mutex. Tuner register access causes demod register access,
because of I2C mux/repeater and that is seen as a recursive locking
- even those locks are different instances (tuner vs. demod).

Defining name for mutex allows lockdep to separate mutexes and error
is not shown.

Signed-off-by: Antti Palosaari <crope@iki.fi>
---
 drivers/media/dvb-frontends/rtl2832.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c
index f44dc50..f41bbd0 100644
--- a/drivers/media/dvb-frontends/rtl2832.c
+++ b/drivers/media/dvb-frontends/rtl2832.c
@@ -1187,6 +1187,7 @@  static int rtl2832_probe(struct i2c_client *client,
 		},
 	};
 	static const struct regmap_config regmap_config = {
+		.name = KBUILD_MODNAME,
 		.reg_bits    =  8,
 		.val_bits    =  8,
 		.volatile_reg = rtl2832_volatile_reg,