From: Guenter Roeck <linux@roeck-us.net>
To: Chris Packham <Chris.Packham@alliedtelesis.co.nz>,
"jdelvare@suse.com" <jdelvare@suse.com>
Cc: "linux-hwmon@vger.kernel.org" <linux-hwmon@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: Errant readings on LM81 with T2080 SoC
Date: Tue, 9 Mar 2021 19:29:23 -0800 [thread overview]
Message-ID: <c009a2b7-b15c-b9e6-a7d6-98d6b1039512@roeck-us.net> (raw)
In-Reply-To: <b1ba3f34-cbcc-4bbd-ea84-aad21f513682@alliedtelesis.co.nz>
On 3/9/21 3:35 PM, Chris Packham wrote:
>
> On 8/03/21 1:31 pm, Guenter Roeck wrote:
>> On 3/7/21 2:52 PM, Chris Packham wrote:
>>> Fundamentally I think this is a problem with the fact that the LM81 is
>>> an SMBus device but the T2080 (and other Freescale SoCs) uses i2c and we
>>> emulate SMBus. I suspect the errant readings are when we don't get round
>>> to completing the read within the timeout specified by the SMBus
>>> specification. Depending on when that happens we either fail the
>>> transfer or interpret the result as all-1s.
>> That is quite unlikely. Many sensor chips are SMBus chips connected to
>> i2c busses. It is much more likely that there is a bug in the T2080 i2c driver,
>> that the chip doesn't like the bulk read command issued through regmap, that
>> the chip has problems with the i2c bus speed, or that the i2c bus is noisy.
> I have noticed that with the switch to regmap we end up using plain i2c
> instead of SMBUS. There appears to be no way of saying use SMBUS
> semantics if the i2c adapter reports I2C_FUNC_I2C.
>
The driver only really supports I2C; SMBUS functions are emulated.
I don't think that makes a real difference.
Guenter
prev parent reply other threads:[~2021-03-10 3:30 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-07 22:52 Errant readings on LM81 with T2080 SoC Chris Packham
2021-03-08 0:31 ` Guenter Roeck
2021-03-08 2:27 ` Chris Packham
2021-03-08 4:37 ` Chris Packham
2021-03-08 4:59 ` Guenter Roeck
2021-03-08 20:27 ` Chris Packham
2021-03-08 22:39 ` Guenter Roeck
2021-03-10 2:19 ` Chris Packham
2021-03-10 5:06 ` Guenter Roeck
2021-03-10 21:48 ` Chris Packham
2021-03-11 7:41 ` Guenter Roeck
2021-03-11 8:18 ` Wolfram Sang
2021-03-11 15:19 ` Guenter Roeck
2021-03-11 21:17 ` Chris Packham
2021-03-11 21:34 ` Guenter Roeck
2021-03-11 23:47 ` Chris Packham
2021-03-12 0:07 ` Guenter Roeck
2021-03-12 0:19 ` Chris Packham
2021-03-12 9:25 ` David Laight
2021-03-14 21:26 ` Chris Packham
2021-03-15 9:46 ` David Laight
2021-03-18 5:44 ` Wolfram Sang
2021-03-18 3:46 ` Chris Packham
2021-03-18 4:02 ` Guenter Roeck
2021-03-18 5:39 ` Wolfram Sang
2021-03-08 22:10 ` Chris Packham
2021-03-09 4:36 ` Chris Packham
2021-03-09 5:24 ` Guenter Roeck
2021-03-09 23:35 ` Chris Packham
2021-03-10 3:29 ` Guenter Roeck [this message]
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=c009a2b7-b15c-b9e6-a7d6-98d6b1039512@roeck-us.net \
--to=linux@roeck-us.net \
--cc=Chris.Packham@alliedtelesis.co.nz \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).