All of lore.kernel.org
 help / color / mirror / Atom feed
From: azummo-lists@towertech.it (Alessandro Zummo)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [RFC] adding back i2c_get_clients
Date: Thu, 17 Nov 2005 11:03:15 +0000	[thread overview]
Message-ID: <20051117110226.4493334f@inspiron> (raw)
In-Reply-To: <20051117003330.21bfff26@inspiron>

On Wed, 16 Nov 2005 23:40:54 -0800
Greg KH <greg@kroah.com> wrote:

> On Thu, Nov 17, 2005 at 12:33:30AM +0100, Alessandro Zummo wrote:
> > 
> >  Hello,
> > 
> >   I'd like to restart a topic that was discussed before, regarding the infrastructure
> >  required to send a command/ioctl directly to an i2c client.
> 
> No, we don't want to allow new ioctls to be created/used.  Please use
> other methods for this.

 You either send a command or an ioctl. To me, it doesn't really matter what
 I'm sending, as long as:

 a) I have a way to send a command directly to my device driver
 b) my device driver will not receive a command it is not supposed to receive, not
 like the i2c_clients_command is currently doing. ioctls would help here.

 Also, I don't want to create new ioctls, just to use existing ones. All
 the media drivers are currently using ioctls.

> >   The topic was discussed in [1] and [2] more than one year ago. This missing
> >  functionality led to all sort of tricks in both i2c rtc drivers and media drivers.
> 
> What exactly is the problem you are trying to solve?

 a) I would like to send specific commands to my driver without having
 to export a function to do that.

 b) I want to have drivers of the same class to respond to a common command
 subset, so that, for example, every i2c driver which is compatible
 with I2C_CLASS_RTC could be used in the same way from the higher layers.

 c) trying to understand and document the way i2c_driver->command should
 be used/abused.

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Turin, Italy

  http://www.towertech.it


  parent reply	other threads:[~2005-11-17 11:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-17  0:34 [lm-sensors] [RFC] adding back i2c_get_clients Alessandro Zummo
2005-11-17  8:56 ` Greg KH
2005-11-17 11:03 ` Alessandro Zummo [this message]
2005-11-17 11:35 ` Jean Delvare
2005-11-17 11:56 ` Alessandro Zummo
2005-11-17 13:03 ` Jean Delvare
2005-11-17 13:20 ` Alessandro Zummo
2005-11-17 14:33 ` Jean Delvare
2005-11-17 15:04 ` Alessandro Zummo
2005-11-17 18:01 ` Greg KH
2005-11-17 19:23 ` Alessandro Zummo
2005-11-17 19:27 ` Greg KH

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=20051117110226.4493334f@inspiron \
    --to=azummo-lists@towertech.it \
    --cc=lm-sensors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.