• Daniel Scheller's avatar
    [media] dvb-frontends/stv0367: add flag to make i2c_gatectrl optional · f61c2991
    Daniel Scheller authored
    Some hardware and bridges (namely ddbridge) require that tuner access is
    limited to one concurrent access and wrap i2c gate control with a
    mutex_lock when attaching frontends. According to vendor information, this
    is required as concurrent tuner reconfiguration can interfere each other
    and at worst cause tuning fails or bad reception quality.
    
    If the demod driver does gate_ctrl before setting up tuner parameters, and
    the tuner does another I2C enable, it will deadlock forever when gate_ctrl
    is wrapped into the mutex_lock. This adds a flag and a conditional before
    triggering gate_ctrl in the demodulator driver.
    Signed-off-by: default avatarDaniel Scheller <d.scheller@gmx.net>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
    f61c2991
stv0367.c 92.9 KB