Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: [PATCHES] Frontend kernel i2c conversion.



Gerd Knorr writes:
 > >  > > Alternative: get the i2c_adapter pointer via sub_device, 
 > >  > > lock it, (in case of linuxtv driver, change i2c adapter name),
 > >  > > scan it for already present clients, init them, 
 > >  > 
 > >  > How the initialization is done?
 > > 
 > > Via i2c client command calls. FE_REGISTER and FE_UNREGISTER call the 
 > > dvb_(un)register_frontend functions.
 > 
 > So this part should be easy as the i2c_clients_command() helper function
 > (see i2c-core.c) does everything you need for that I think.
 > 

This does not solve the problem with the timing of registration and 
unregistration. The attach and detach function do provide this.
If you do not have access to them or only get access to everything
after i2c registration you will have to patch things up like I
explained above (go through list of clients, etc.). Something similar
will also have to be done on exit of the DVB adapter driver.


Ralph





Home | Main Index | Thread Index