From: greg@kroah.com (Greg KH)
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: <20040826073018.GA22852@kroah.com> (raw)
In-Reply-To: <1092648290.12729.471.camel@uganda>
On Mon, Aug 23, 2004 at 03:08:29PM +0400, Evgeniy Polyakov wrote:
> On Sun, 2004-08-22 at 12:48, Jean Delvare wrote:
> > > > > #define SIO_LDN_GPIO 0x07 /* General-Purpose I/O (GPIO) Ports */
> > > >
> > > > This is PC87366-specific and doesn't belong to that driver.
> > >
> > > No, I think it just should be extended and include any other
> > > defines(for temperature, voltage and others). Although they may live
> > > in drivers for those logical devices. Driver for PC87366 may use it...
> > > I will move it there after it will be created (actually separated to
> > > support several main SuperIO chips at once).
> >
> > I'm not sure I get everything you mean here (especially the last
> > sentence). At any rate, the logical device usage is
> > manufacturer-dependant and, in most cases, chip dependant. And when two
> > different chips each have a logical device for, say, temperature
> > monitoring, the way it is organized "inside" each logical device will be
> > different. So there's no benefit in adding labels or classes to each
> > logical device of each chip, since we will never be able to use them.
> >
> > I insist that the superio driver should be mostly chip-independant. The
> > only part which will not be is the Super-I/O enter sequence. Since the
> > PC8736x chips don't need any, you may not be familiar with it. Most
> > Super-I/O chips need a special sequence to be written to them before
> > they activate. Since the superio driver won't know what it is looking
> > for before it finds it, it'll probably have to test all known keys, then
> > the client driver will ask not only for a given chip ID but for a key +
> > chip ID pair. This also means that you will have to store the (variable
> > length) key in the superio structure.
>
> I'm absolutely agree here.
> I mean above that when I will split sc.c into generic part and pc8736*
> part I will move those definitions into the header for pc8736* driver.
That sounds fine.
> As I described above we will not have code duplication and will have
> ability to add/remove logical devices in run-time.
Which is a good thing.
> > Greg, I much would like to hear you about this.
>
> I think we will come to logical conclusion when he will back from
> vocation.
> Or not.
Heh, it looks good to me. Oh, and I suggest putting this in
drivers/superio for a location.
thanks,
greg k-h
next prev 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
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Evgeniy Polyakov
2005-05-19 6:25 ` Evgeniy Polyakov
2005-05-19 6:25 ` Greg KH [this message]
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
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=20040826073018.GA22852@kroah.com \
--to=greg@kroah.com \
--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.