All of lore.kernel.org
 help / color / mirror / Atom feed
* possible MXS-i2c bug
@ 2012-04-26 11:26 Marek Vasut
  2012-04-26 11:41 ` Fabio Estevam
       [not found] ` <201204261326.29388.marex-ynQEQJNshbs@public.gmane.org>
  0 siblings, 2 replies; 18+ messages in thread
From: Marek Vasut @ 2012-04-26 11:26 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I recently tried mxs-i2c (on 3.4-rc4) with at24 eeprom, didn't work as expected.

Apparently, there might be some timing issue, when I put printk() into the at24 
driver eeprom write function, it "fixed" itself. Though, replacing the i2c 
driver with i2c gpio also fixed the issue, so I suspect the i2c driver has some 
flaw in it.

Further investigation turned out, that the complete() isn't called in the mxs-
i2c driver irq handler unless I put the printk(). Putting the printk() in the 
xfer function of the mxs-i2c driver instead of eeprom write function has the 
same effect -- "fixing" it.

I didn't have time to properly investigate this matter, so consider this as a 
quick and dirty bugreport (maybe?). But thie behavior I saw it quite easily 
replicated, try:

dd if=/dev/zero of=/sys/bus/devices/0-00XY/eeprom bs=<sizeof eeprom> count=1

And the write will timeout.

Has anyone recently tested the driver with such eeprom? Anything from the 24xxx 
series with 16 bit addresses has this problem. I tested and saw this on more 
than one board, so this is not hardware issue.

If noone has any fixes already, I'll debug this tonight or so.

Thanks!

Best regards,
Marek Vasut

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

end of thread, other threads:[~2012-04-28  3:03 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-26 11:26 possible MXS-i2c bug Marek Vasut
2012-04-26 11:41 ` Fabio Estevam
     [not found] ` <201204261326.29388.marex-ynQEQJNshbs@public.gmane.org>
2012-04-26 11:42   ` Wolfram Sang
2012-04-26 11:42     ` Wolfram Sang
     [not found]     ` <20120426114201.GC3548-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-04-26 23:10       ` Marek Vasut
2012-04-26 23:10         ` Marek Vasut
     [not found]         ` <201204270110.21377.marex-ynQEQJNshbs@public.gmane.org>
2012-04-27 14:59           ` Wolfram Sang
2012-04-27 14:59             ` Wolfram Sang
     [not found]             ` <20120427145936.GD16504-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-04-27 15:08               ` Marek Vasut
2012-04-27 15:08                 ` Marek Vasut
     [not found]                 ` <201204271708.53467.marex-ynQEQJNshbs@public.gmane.org>
2012-04-27 15:41                   ` Wolfram Sang
2012-04-27 15:41                     ` Wolfram Sang
     [not found]                     ` <20120427154119.GF16504-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-04-27 15:53                       ` Marek Vasut
2012-04-27 15:53                         ` Marek Vasut
     [not found]                         ` <201204271753.39516.marex-ynQEQJNshbs@public.gmane.org>
2012-04-27 16:37                           ` Wolfram Sang
2012-04-27 16:37                             ` Wolfram Sang
     [not found]                             ` <20120427163756.GH16504-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-04-28  3:03                               ` [TEST PATCH] mxs-i2c DMA support Marek Vasut
2012-04-28  3:03                                 ` Marek Vasut

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.