Linux Media Controller development
 help / color / mirror / Atom feed
* RFC run time configuration parameter checks in subdriver
@ 2013-01-04 14:02 Antti Palosaari
  2013-01-04 18:13 ` Michael Krufky
  0 siblings, 1 reply; 2+ messages in thread
From: Antti Palosaari @ 2013-01-04 14:02 UTC (permalink / raw)
  To: linux-media

I would like to discuss if there is idea to validate subdriver 
parameters explicitly at run-time when subdriver module is load.

There is configuration parameters for about every driver like:
* I2C address
* clock frequency

Nowadays, when main driver loads subdriver, it passes those static 
compile-time parameters to the subdriver, those parameters are not 
mainly validated at all. That could lead situation device is not 
working, instead it is will fail with some error, like I/O as I2C 
address is wrong.

As these parameters are set compile time, this situation affects only 
developers which are adding support for new hardware.

regards
Antti

-- 
http://palosaari.fi/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-04 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-04 14:02 RFC run time configuration parameter checks in subdriver Antti Palosaari
2013-01-04 18:13 ` Michael Krufky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox