From: Guennadi Liakhovetski <g.liakhovetski-Mmb7MZpHnFY@public.gmane.org>
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Strange data corruption when read from /sys/class/i2c-adapter/.../eeprom
Date: Wed, 3 Dec 2008 13:37:13 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0812031327440.4717@axis700.grange> (raw)
Hi,
on an i.MX31-based system I observe a strange effect:
cat /sys/class/i2c-adapter/.../eeprom > /tmp/e1
rmmod <adapter-driver>
modprobe <adapter-driver>
cat /sys/class/i2c-adapter/.../eeprom > /tmp/e2
after which the first 0x40 bytes in e2 are zero. The rest is correct - as
in e1. To recover I have to
rmmod eeprom
i2cdetect ... # incluging eeprom addresses
modprobe eeprom
I would suspect a software bug, but I get this with two alternative
adapter drivers (mxc and imx - see my recent post to the list), and on a
laptop with 2.6.26 I don't get this. The kernel on i.MX31 is a pretty
fresh linux-next. Does this look like a hardware "feature"? Or do we have
a regression?
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
next reply other threads:[~2008-12-03 12:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-03 12:37 Guennadi Liakhovetski [this message]
[not found] ` <Pine.LNX.4.64.0812031327440.4717-0199iw4Nj15frtckUFj5Ag@public.gmane.org>
2008-12-04 8:48 ` Strange data corruption when read from /sys/class/i2c-adapter/.../eeprom Jean Delvare
[not found] ` <20081204094800.3f80d7f6-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-12-04 11:22 ` Guennadi Liakhovetski
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=Pine.LNX.4.64.0812031327440.4717@axis700.grange \
--to=g.liakhovetski-mmb7mzphnfy@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.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