All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [PC87366] A bit different design for it's SuperIO.
Date: Thu, 19 May 2005 06:25:12 +0000	[thread overview]
Message-ID: <20040816202528.2699426c.khali@linux-fr.org> (raw)
In-Reply-To: <1092648290.12729.471.camel@uganda>

> Although lm_sensors already has driver for it's fan, voltage and
> temperature sensors, it does not have driver for is's GPIO, which
> allows anyone to create i2c and w1 adapters over it.
> Design is simple as 5 pennies:
> 
> 	SuperIO main driver
> 		|
> +----+----+-----+-----+-----+---
> |    |    |     |     |     |
> 
> 	Logical devices space...
> 
> Where each logical device may be registered and deregistered to/from
> main driver. Theoretically master device may have some kind of ioctl
> or any other communication mechanism with userspace/kernelspace which
> will allow any kind of slave manipulations.
> 
> Since you have "monitoring" driver already, I've created one only for
> GPIO.
> 
> Since I do not know where it should live(at my private trees it lives
> in drivers/w1/) I post here files itself.
> 
> Anyone using GNU/Arch may access it through public mirror at:
> http://tservice.net.ru/~s0mbre/2004/ branch "soekris--main--0".
> 
> Please review and comment.

I haven't read the code (yet), just a few random comments on the general
design:

1* The final driver definitely should be placed in a "common" location.
It isn't i2c- nor w1-specific. It would be in drivers/isa but this one
doesn't seem to exist... Maybe Greg will have a suggestion when he comes
back from vacations.

2* If such a design is in place as I port the pc87360 driver to Linux
2.6, I'll of course use it. Note that this driver supports not only the
PC87366 but also the PC87360, PC87363, PC87364 and PC87365 (although
these are less frequently found, it seems) so your driver would have to
support them all as well.

3* The Super-I/O mechanics are not PC8736x-specific. It is a standard
(established by Intel some years ago) used by all Super-I/O chips,
including those made by National Semiconductor, ITE, Winbond, SMSC and
VIA. This means that your driver should most likely be completely
generic, and probably doesn't even need to know of any chip ID. It
could, OTOH, export an ID test function (although I guess it wouldn't be
any different from the register read function with register set to
0x20).

-- 
Jean "Khali" Delvare
http://khali.linux-fr.org/

  parent reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:25 [PC87366] A bit different design for it's SuperIO Evgeniy Polyakov
2005-05-19  6:25 ` Evgeniy Polyakov
2005-05-19  6:25 ` Jean Delvare [this message]
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Evgeniy Polyakov
2005-05-19  6:25 ` Evgeniy Polyakov
2005-05-19  6:25 ` Evgeniy Polyakov
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Evgeniy Polyakov
2005-05-19  6:25 ` Evgeniy Polyakov

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=20040816202528.2699426c.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --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.