From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Jean Delvare <khali@linux-fr.org>
Cc: Paul Mackerras <paulus@samba.org>,
Tim Shepard <shep@alum.mit.edu>,
linuxppc-dev@ozlabs.org
Subject: Re: i2c-powermac fails
Date: Thu, 15 Oct 2009 08:26:15 +1100 [thread overview]
Message-ID: <1255555575.2347.56.camel@pasglop> (raw)
In-Reply-To: <20091014230252.0d0cba8d@hyperion.delvare>
On Wed, 2009-10-14 at 23:02 +0200, Jean Delvare wrote:
> Hi all,
>
> On Tue, 13 Oct 2009 11:49:48 +0200, Jean Delvare wrote:
> > I2C bus being setup too fast sounds more likely. It might be worth
> > adding an arbitrary delay after initialization, just to see if it
> > helps. Not sure where though, as I'm not familiar with the Powermac
> > initialization steps. Maybe right before i2c_add_adapter() in
> > i2c_powermac_probe?
>
> Tim, can you please give a try to this patch? Obviously your machine
> will take 5 additional seconds to boot, and this isn't meant as a real
> fix, but if it helps, this will be an interesting hint for further
> debugging attempts.
Oh, I was actually thinking about the frequency of the I2C clock :-)
Cheers,
Ben.
> --- kernel32.orig/drivers/macintosh/therm_adt746x.c
> +++ kernel32/drivers/macintosh/therm_adt746x.c
> @@ -380,6 +380,7 @@ static int probe_thermostat(struct i2c_c
> if (thermostat)
> return 0;
>
> + msleep(5000);
> th = kzalloc(sizeof(struct thermostat), GFP_KERNEL);
> if (!th)
> return -ENOMEM;
>
>
next prev parent reply other threads:[~2009-10-14 21:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-13 9:23 i2c-powermac fails Jean Delvare
2009-10-13 9:32 ` Benjamin Herrenschmidt
2009-10-13 9:49 ` Jean Delvare
2009-10-14 21:02 ` Jean Delvare
2009-10-14 21:26 ` Benjamin Herrenschmidt [this message]
2009-10-15 10:49 ` Jean Delvare
2009-10-15 11:19 ` Benjamin Herrenschmidt
2009-10-15 14:05 ` Jean Delvare
2009-10-16 7:44 ` Jean Delvare
2009-10-16 8:42 ` Benjamin Herrenschmidt
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=1255555575.2347.56.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=khali@linux-fr.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=shep@alum.mit.edu \
/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;
as well as URLs for NNTP newsgroup(s).