Linux I2C development
 help / color / mirror / Atom feed
* Strange data corruption when read from /sys/class/i2c-adapter/.../eeprom
@ 2008-12-03 12:37 Guennadi Liakhovetski
       [not found] ` <Pine.LNX.4.64.0812031327440.4717-0199iw4Nj15frtckUFj5Ag@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Guennadi Liakhovetski @ 2008-12-03 12:37 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-04 11:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-03 12:37 Strange data corruption when read from /sys/class/i2c-adapter/.../eeprom Guennadi Liakhovetski
     [not found] ` <Pine.LNX.4.64.0812031327440.4717-0199iw4Nj15frtckUFj5Ag@public.gmane.org>
2008-12-04  8:48   ` Jean Delvare
     [not found]     ` <20081204094800.3f80d7f6-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-12-04 11:22       ` Guennadi Liakhovetski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox