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 13:20:22 +0000	[thread overview]
Message-ID: <20051117131940.66037b1c@inspiron> (raw)
In-Reply-To: <20051117003330.21bfff26@inspiron>

On Thu, 17 Nov 2005 12:49:14 +0100 (CET)
"Jean Delvare" <khali@linux-fr.org> wrote:

> OK, so what you call "specific", I call "generic" ;) Sure, exporting
> functions is not suitable for a generic interface. You want to either
> define an ioctl-like interface (f(target, command, &parameter), but Greg

 exactly. or, at least, document what i2c_driver->command should be used
 for. If it can be used for ioctls, and only for them, then we have no problems.

 If we can use command for whatever we want, the i2c_clients_commands
 must be removed, otherwise we are going to have oopses.

 It's just a matter of writing things down.



> > That would bind the i2c driver definitely with its rtc counterpart.
> 
> Exactly the contrary. There would no more be a specific rtc counterpart,
> or at least it would no more bound directly to the i2c part. This is the
> point of having a core and well-defined interfaces.

 I agree, but we still have to define the interface between the i2c_driver
 and the external world, as i2c_driver->command is not adeguately documented.



> platform-rtc <-> rtc-core <-> rtc-i2c
> 
> What you call "rtc counterpart of the rtc-i2c driver" is actually
> platform-specific. The same RTC chip could be used as the system RTC on
> one system, and used differently on other systems. We don't want to
> write as many drivers as platforms for the same chip.

 I agree. I think we are saying similar things with different
 terms.. Let's do an example with the X1205: 

 if you want to use it you must

 modprobe x1205

 if you want to _also_ use it as the system RTC, you should
 _also_

 modprobe rtc-i2c-interfacing-driver

 which will take care of interfacing x1205 with the kernel rtc 
 subsytem.

 Do we agree here?


-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Turin, Italy

  http://www.towertech.it


  parent reply	other threads:[~2005-11-17 13:20 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
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 [this message]
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=20051117131940.66037b1c@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.