From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Guy Yasko <gyasko@gmail.com>
Cc: linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: Fix boot on some 12" powerbooks, need testers on others
Date: Thu, 08 Dec 2005 21:48:00 +1100 [thread overview]
Message-ID: <1134038881.11760.11.camel@gaston> (raw)
In-Reply-To: <87bqzs5cio.fsf@oedipa.disorg>
This patch against 2.6.15-rc5 might help fixing boot on some recent
powerbooks like some 12" aluminium. However, I need urgently some
testers with other models of powerbooks and mac mini to tell me if it
causes any regression (that is before tomorrow) so it _might_ have a
chance to make it in 2.6.15.
Index: linux-work/arch/powerpc/platforms/powermac/feature.c
===================================================================
--- linux-work.orig/arch/powerpc/platforms/powermac/feature.c 2005-11-19 10:56:07.000000000 +1100
+++ linux-work/arch/powerpc/platforms/powermac/feature.c 2005-12-08 21:45:30.000000000 +1100
@@ -1650,11 +1650,17 @@
*/
if (macio->type == macio_intrepid) {
- if (enable)
- UN_OUT(UNI_N_CLOCK_SPREADING, 2);
- else
- UN_OUT(UNI_N_CLOCK_SPREADING, 0);
- mdelay(40);
+ struct device_node *clock =
+ of_find_node_by_path("/uni-n@f8000000/hw-clock");
+ if (clock && get_property(clock, "platform-do-clockspreading",
+ NULL)) {
+ if (enable)
+ UN_OUT(UNI_N_CLOCK_SPREADING, 2);
+ else
+ UN_OUT(UNI_N_CLOCK_SPREADING, 0);
+ mdelay(40);
+ }
+ of_node_put(clock);
}
while (machine_is_compatible("PowerBook5,2") ||
Index: linux-work/arch/ppc/platforms/pmac_feature.c
===================================================================
--- linux-work.orig/arch/ppc/platforms/pmac_feature.c 2005-11-14 20:32:16.000000000 +1100
+++ linux-work/arch/ppc/platforms/pmac_feature.c 2005-12-08 21:45:48.000000000 +1100
@@ -1606,11 +1606,17 @@
*/
if (macio->type == macio_intrepid) {
- if (enable)
- UN_OUT(UNI_N_CLOCK_SPREADING, 2);
- else
- UN_OUT(UNI_N_CLOCK_SPREADING, 0);
- mdelay(40);
+ struct device_node *clock =
+ of_find_node_by_path("/uni-n@f8000000/hw-clock");
+ if (clock && get_property(clock, "platform-do-clockspreading",
+ NULL)) {
+ if (enable)
+ UN_OUT(UNI_N_CLOCK_SPREADING, 2);
+ else
+ UN_OUT(UNI_N_CLOCK_SPREADING, 0);
+ mdelay(40);
+ }
+ of_node_put(clock);
}
while (machine_is_compatible("PowerBook5,2") ||
next parent reply other threads:[~2005-12-08 10:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20051026215535.GA5713@campbell-lange.net>
[not found] ` <1133124018.7768.107.camel@gaston>
[not found] ` <87veydaftb.fsf@oedipa.disorg>
[not found] ` <1133130209.7768.136.camel@gaston>
[not found] ` <877jatemic.fsf@oedipa.disorg>
[not found] ` <1133132287.7768.138.camel@gaston>
[not found] ` <87oe45d0j4.fsf@oedipa.disorg>
[not found] ` <1133142131.7768.156.camel@gaston>
[not found] ` <87ek51cycq.fsf@oedipa.disorg>
[not found] ` <1133145863.7768.165.camel@gaston>
[not found] ` <73eb1cf90511271913k1786facev55038e567c51d19c@mail.gmail.com>
[not found] ` <1133150158.7768.177.camel@gaston>
[not found] ` <87zmnpbe34.fsf@oedipa.disorg>
[not found] ` <1133151191.7768.183.camel@gaston>
[not found] ` <87hd9wak4a.fsf@oedipa.disorg>
[not found] ` <1133210294.7768.190.camel@gaston>
[not found] ` <87bqzs5cio.fsf@oedipa.disorg>
2005-12-08 10:48 ` Benjamin Herrenschmidt [this message]
2005-12-08 11:12 ` Fix boot on some 12" powerbooks, need testers on others Michael Hanselmann
2005-12-08 15:10 ` Dustin Lang
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=1134038881.11760.11.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=gyasko@gmail.com \
--cc=linuxppc-dev@ozlabs.org \
/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).