From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Helps: how to use i801--SMBus functions viai2c-dev
Date: Mon, 07 Nov 2005 16:31:17 +0000 [thread overview]
Message-ID: <8MJ0kgmd.1131376709.6455980.khali@localhost> (raw)
In-Reply-To: <20051101104855.41881.qmail@web31214.mail.mud.yahoo.com>
Hi Michael,
On 2005-11-07, Mingkun Gu wrote:
> Thank you for your prompt reply. I am working on a project where a
> customized board sitting on the PCI slot. The board has a SMBus
> microcontroller which is used to control some external sensors and
> communicates with the ICH6 SMBus master controller on the host PC
> motherboard. I need to send SMBus request command packets to the
> microcontroller and receive SMBus response data packets from the micro
> which also generates an interrupt sometimes to request for immediate or
> urgent services.
>
> Do you have any suggestion on how to implement such an application?
For one thing, if you are dealing with events which require fast
reactions, it might be wiser to write a kernel driver than a user-space
application.
Second, as I said, the current i2c-i801 driver is not interrupt based. If
you need it to react fast, you will need to rewrite it in part to use
interrupts. If you do, you should get in touch with Mark M. Hoffman who
has been working on this some times ago.
The details depend on the exact hardware implementation. I have to admit
I am not really qualified to comment on interrupts, as I never had to
deal with these so far. Please note that the i2c core in Linux doesn't
support slave mode on masters at the moment. If this is something your
system needs, this will be a (serious) problem.
--
Jean Delvare
next prev parent reply other threads:[~2005-11-07 16:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-01 11:49 [lm-sensors] Helps: how to use i801--SMBus functions via i2c-dev MK GU
2005-11-01 16:59 ` [lm-sensors] Helps: how to use i801--SMBus functions via Jean Delvare
2005-11-02 15:29 ` [lm-sensors] " Gu, Mingkun
2005-11-04 20:48 ` Rudolf Marek
2005-11-07 13:38 ` [lm-sensors] Helps: how to use i801--SMBus functions viai2c-dev Gu, Mingkun
2005-11-07 15:51 ` Jean Delvare
2005-11-07 16:12 ` Gu, Mingkun
2005-11-07 16:31 ` Jean Delvare [this message]
2005-11-07 16:52 ` Gu, Mingkun
2005-11-07 17:03 ` Jean Delvare
2005-11-07 18:14 ` Gu, Mingkun
2005-11-07 19:33 ` Jean Delvare
2005-11-07 19:57 ` Gu, Mingkun
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=8MJ0kgmd.1131376709.6455980.khali@localhost \
--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.