[linux-dvb] I2C Bus probing was Re: (temp. solution) modprobe mantis stalls/hangs/freezes (Twinhan VP-1034 and ivtv)
mkrufky at linuxtv.org
Sun Aug 26 18:45:44 CEST 2007
Manu Abraham wrote:
> Michael Krufky wrote:
>>> Hans and Manu,
>>> The mantis and ivtv module loaded ok with the following options for
>>> saa7115 in /etc/modprobe.conf:
>>> options saa7115 ignore=-1,0x25,-1,0x24,-1,0x21,-1,0x20
>> Just change the -1 to the i2c bus ID of the mantis device, to prevent saa7115 from probing on the mantis bus. This way, it would not prevent successful attachment to the ivtv i2c bus, and you wouldn't have to do the hack described below.
> the bug is *not* with the mantis and *no* need to fix the mantis. The
> bug comes from the extremely wrong concept followed (ie probing) which i
> have mentioned numerous times, many places.
You can go on and on about how probing is wrong -- I already agree with you in that respect. Regardless, the saa7115 driver does this probe, and this will not change until after the new i2c methods are implemented in the video decoder i2c_client modules.
I haven't looked at the Mantis code, but... if you don't need to use any of the preexisting i2c client modules that attach via probing, then just remove I2C_CLASS_TV_DIGITAL from the i2c_adapter->class from within the Mantis driver. This will prevent any probes from occurring on your device.
More information about the linux-dvb