* [PATCH] i2c-au1550: increase timeout waiting for transactions to finish
@ 2011-06-12 12:31 Manuel Lauss
[not found] ` <1307881887-12676-1-git-send-email-manuel.lauss-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Manuel Lauss @ 2011-06-12 12:31 UTC (permalink / raw)
To: Linux-I2C; +Cc: Manuel Lauss
Wait a bit longer for the I2C master transaction to finish.
With this change the WM8731 codec on the DB1300 board is now
reliably initialized.
Tested on Db1200 and Db1300.
Signed-off-by: Manuel Lauss <manuel.lauss-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
---
drivers/i2c/busses/i2c-au1550.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/i2c/busses/i2c-au1550.c b/drivers/i2c/busses/i2c-au1550.c
index 532828b..e4ece23 100644
--- a/drivers/i2c/busses/i2c-au1550.c
+++ b/drivers/i2c/busses/i2c-au1550.c
@@ -106,7 +106,7 @@ wait_master_done(struct i2c_au1550_data *adap)
au_sync();
if ((stat & PSC_SMBEVNT_MD) != 0)
return 0;
- udelay(1);
+ udelay(2);
}
return -ETIMEDOUT;
--
1.7.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1307881887-12676-1-git-send-email-manuel.lauss-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] i2c-au1550: increase timeout waiting for transactions to finish [not found] ` <1307881887-12676-1-git-send-email-manuel.lauss-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> @ 2011-06-15 21:40 ` Ben Dooks [not found] ` <20110615214009.GJ15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Ben Dooks @ 2011-06-15 21:40 UTC (permalink / raw) To: Manuel Lauss; +Cc: Linux-I2C On Sun, Jun 12, 2011 at 02:31:27PM +0200, Manuel Lauss wrote: > Wait a bit longer for the I2C master transaction to finish. > With this change the WM8731 codec on the DB1300 board is now > reliably initialized. > > Tested on Db1200 and Db1300. > > Signed-off-by: Manuel Lauss <manuel.lauss-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> If no-one else can think of a better fix, then this can go into -rc. Is there no register that could be read to find out if the system is busy? > --- > drivers/i2c/busses/i2c-au1550.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-au1550.c b/drivers/i2c/busses/i2c-au1550.c > index 532828b..e4ece23 100644 > --- a/drivers/i2c/busses/i2c-au1550.c > +++ b/drivers/i2c/busses/i2c-au1550.c > @@ -106,7 +106,7 @@ wait_master_done(struct i2c_au1550_data *adap) > au_sync(); > if ((stat & PSC_SMBEVNT_MD) != 0) > return 0; > - udelay(1); > + udelay(2); > } > > return -ETIMEDOUT; > -- > 1.7.5.3 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-i2c" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Ben Dooks, ben-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org, http://www.fluff.org/ben/ Large Hadron Colada: A large Pina Colada that makes the universe disappear. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20110615214009.GJ15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>]
* Re: [PATCH] i2c-au1550: increase timeout waiting for transactions to finish [not found] ` <20110615214009.GJ15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org> @ 2011-06-16 6:00 ` Manuel Lauss 0 siblings, 0 replies; 3+ messages in thread From: Manuel Lauss @ 2011-06-16 6:00 UTC (permalink / raw) To: Ben Dooks; +Cc: Linux-I2C On Wed, Jun 15, 2011 at 11:40 PM, Ben Dooks <ben-i2c-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org> wrote: > On Sun, Jun 12, 2011 at 02:31:27PM +0200, Manuel Lauss wrote: >> Wait a bit longer for the I2C master transaction to finish. >> With this change the WM8731 codec on the DB1300 board is now >> reliably initialized. >> >> Tested on Db1200 and Db1300. >> >> Signed-off-by: Manuel Lauss <manuel.lauss-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > > If no-one else can think of a better fix, then this can go into -rc. > > Is there no register that could be read to find out if the system is > busy? That's what the function in the patch does: polls for the "master done" bit to be set. The timeout around it is just too short for some systems. Next merge window is fine for this too. For the current in-tree users this driver actually works fine. Manuel Lauss ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-16 6:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-12 12:31 [PATCH] i2c-au1550: increase timeout waiting for transactions to finish Manuel Lauss
[not found] ` <1307881887-12676-1-git-send-email-manuel.lauss-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2011-06-15 21:40 ` Ben Dooks
[not found] ` <20110615214009.GJ15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2011-06-16 6:00 ` Manuel Lauss
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).