Linux Media Controller development
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: linux-media <linux-media@vger.kernel.org>
Subject: RFC run time configuration parameter checks in subdriver
Date: Fri, 04 Jan 2013 16:02:36 +0200	[thread overview]
Message-ID: <50E6E0FC.7060903@iki.fi> (raw)

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/

             reply	other threads:[~2013-01-04 14:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-04 14:02 Antti Palosaari [this message]
2013-01-04 18:13 ` RFC run time configuration parameter checks in subdriver Michael Krufky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50E6E0FC.7060903@iki.fi \
    --to=crope@iki.fi \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox