diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2010-02-13 15:06:14 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:46:51 -0400 |
commit | c8382c8e3295a1c85975c1898410f4d103650e4a (patch) | |
tree | add5d11bc6bc59b5919c6280963a2060b28bc52c /drivers/media/dvb/frontends/stv090x.c | |
parent | 5817ea0c83665dbc117cb7ca637202da0fb1abce (diff) |
V4L/DVB: stv090x: Add some notes about the internal tuner I/O control
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/stv090x.c')
-rw-r--r-- | drivers/media/dvb/frontends/stv090x.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c index a461fdff2c9c..425e7a43ae19 100644 --- a/drivers/media/dvb/frontends/stv090x.c +++ b/drivers/media/dvb/frontends/stv090x.c | |||
@@ -758,6 +758,15 @@ static int stv090x_i2c_gate_ctrl(struct stv090x_state *state, int enable) | |||
758 | { | 758 | { |
759 | u32 reg; | 759 | u32 reg; |
760 | 760 | ||
761 | /* | ||
762 | * NOTE! A lock is used as a FSM to control the state in which | ||
763 | * access is serialized between two tuners on the same demod. | ||
764 | * This has nothing to do with a lock to protect a critical section | ||
765 | * which may in some other cases be confused with protecting I/O | ||
766 | * access to the demodulator gate. | ||
767 | * In case of any error, the lock is unlocked and exit within the | ||
768 | * relevant operations themselves. | ||
769 | */ | ||
761 | if (enable) | 770 | if (enable) |
762 | mutex_lock(&state->internal->tuner_lock); | 771 | mutex_lock(&state->internal->tuner_lock); |
763 | 772 | ||