From b45a7a2004b298c70a67dde4c502247a03029609 Mon Sep 17 00:00:00 2001 From: Manu Abraham Date: Sat, 13 Feb 2010 17:06:14 -0300 Subject: [PATCH] --- yaml --- r: 192783 b: refs/heads/master c: c8382c8e3295a1c85975c1898410f4d103650e4a h: refs/heads/master i: 192781: 6ba1057e48c1ccceebaecfac37158d1a35be253f 192779: 0d1068f08fec765cdac54fbfc868ed4da86d7ae5 192775: 4a88fd6766a8d4d587807363fdab2789f2b5f7d4 192767: 09a5654fad59edc0e44e23c367d9f3c0e3897b9a v: v3 --- [refs] | 2 +- trunk/drivers/media/dvb/frontends/stv090x.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 3378ea872f72..2978ba0dc42a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5817ea0c83665dbc117cb7ca637202da0fb1abce +refs/heads/master: c8382c8e3295a1c85975c1898410f4d103650e4a diff --git a/trunk/drivers/media/dvb/frontends/stv090x.c b/trunk/drivers/media/dvb/frontends/stv090x.c index a461fdff2c9c..425e7a43ae19 100644 --- a/trunk/drivers/media/dvb/frontends/stv090x.c +++ b/trunk/drivers/media/dvb/frontends/stv090x.c @@ -758,6 +758,15 @@ static int stv090x_i2c_gate_ctrl(struct stv090x_state *state, int enable) { u32 reg; + /* + * NOTE! A lock is used as a FSM to control the state in which + * access is serialized between two tuners on the same demod. + * This has nothing to do with a lock to protect a critical section + * which may in some other cases be confused with protecting I/O + * access to the demodulator gate. + * In case of any error, the lock is unlocked and exit within the + * relevant operations themselves. + */ if (enable) mutex_lock(&state->internal->tuner_lock);