* i2c driver for mxc platform
@ 2010-03-15 18:00 alfred steele
[not found] ` <528f13591003151100q29984964n99828cccad075d41-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: alfred steele @ 2010-03-15 18:00 UTC (permalink / raw)
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA
Hi ,
Looks like there is some discrepancy with the mxc i2c driver.
In this portion of the mxc_i2c_stop() routine, the MSTA bit is
cleared(1to 0) to generate a stop condition but there is no state
check whatsoever before for the IBB bit (bus busy bit is set or not)
while (retry-- && ((sr & MXC_I2SR_IBB))) {
udelay(3);
sr = readw(dev->membase + MXC_I2SR);
I am not sure what SCL frequency has been tested with for the
"udelay(3)". Is that a sufficient wait on busses set to run on the
traditional slow rate(bit rate upto 100 kbps?
I am curious.
Thanks,
Alfred.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: i2c driver for mxc platform
[not found] ` <528f13591003151100q29984964n99828cccad075d41-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-03-15 19:37 ` Robert Schwebel
0 siblings, 0 replies; 2+ messages in thread
From: Robert Schwebel @ 2010-03-15 19:37 UTC (permalink / raw)
To: alfred steele
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Wolfram Sang, Sascha Hauer
On Mon, Mar 15, 2010 at 01:00:42PM -0500, alfred steele wrote:
> Looks like there is some discrepancy with the mxc i2c driver.
>
> In this portion of the mxc_i2c_stop() routine, the MSTA bit is
> cleared(1to 0) to generate a stop condition but there is no state
> check whatsoever before for the IBB bit (bus busy bit is set or not)
>
> while (retry-- && ((sr & MXC_I2SR_IBB))) {
> udelay(3);
> sr = readw(dev->membase + MXC_I2SR);
>
> I am not sure what SCL frequency has been tested with for the
> "udelay(3)". Is that a sufficient wait on busses set to run on the
> traditional slow rate(bit rate upto 100 kbps?
>
> I am curious.
Setting Wolfram and Sascha to Cc: ...
rsc
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-15 19:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-15 18:00 i2c driver for mxc platform alfred steele
[not found] ` <528f13591003151100q29984964n99828cccad075d41-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-03-15 19:37 ` Robert Schwebel
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).