All of lore.kernel.org
 help / color / mirror / Atom feed
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 17:03:40 +0000	[thread overview]
Message-ID: <3RSM5dGT.1131378656.7398430.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 the advices. I've also tried to write/read block data
> to/from the ICH6 SMBus but failed to receive successful returns. I did
> tried other commands. I received successful returns for I2C_SMBUS_QUICK,
> I2C_SMBUS_BYTE-DATA (read/write) and I2C_SMBUS_WORD_DATA (read), and
> unsuccessful returns (-1) for I2C_SMBUS_WORD_DATA (write) and
> I2C_SMBUS_BLOCK_DATA (read/write)
> when calling the ioctl function of the i2c-dev module.
>
> Any comments and advices?

Does your client chip actually support all these transaction types?

An SMBus transaction will only work if the target chip does expect that
transaction type for the given "command" byte. If not, the chip will
not ACK all the bytes or will stop sending data, causing the transaction
to fail.

You may want to read the SMBus specification for clarifications on what
each transaction does. You should not try random transactions. Only use
the transaction types your client chip expects for each command. These
should be documented.

--
Jean Delvare

  parent reply	other threads:[~2005-11-07 17:03 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
2005-11-07 16:52 ` Gu, Mingkun
2005-11-07 17:03 ` Jean Delvare [this message]
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=3RSM5dGT.1131378656.7398430.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.