From: Colin Leroy <colin@colino.net>
To: linuxppc-dev@ozlabs.org
Subject: Re: TEST: Sleep patch #5
Date: Wed, 24 Nov 2004 08:50:54 +0100 [thread overview]
Message-ID: <20041124085054.14a89f5f@pirandello> (raw)
In-Reply-To: <1101280145.4511.4.camel@gaston>
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
On 24 Nov 2004 at 18h11, Benjamin Herrenschmidt wrote:
Hi Ben,
> Ok, here's the 5th version of the sleep patch for ATI based albooks &
> iBook G4. Other machine users, please test too as it may cause
> regressions (or improvements) as well.
Care to apply the attached patch to your tree ? It would avoid me
a failing hunk when applying your patches, and also that's what
AppleGmacEthernet does.
Thanks,
--
Colin
[-- Attachment #2: sungem_wol_opts.patch --]
[-- Type: text/plain, Size: 833 bytes --]
--- drivers/net/sungem_phy.c.orig 2004-11-24 08:43:44.499855352 +0100
+++ drivers/net/sungem_phy.c 2004-11-24 08:42:58.990773784 +0100
@@ -147,13 +147,15 @@
static int bcm5221_suspend(struct mii_phy* phy, int wol_options)
{
u16 data;
- data = phy_read(phy, MII_BCM5221_TEST);
- phy_write(phy, MII_BCM5221_TEST,
- data | MII_BCM5221_TEST_ENABLE_SHADOWS);
-
- data = phy_read(phy, MII_BCM5221_SHDOW_AUX_MODE4);
- phy_write(phy, MII_BCM5221_SHDOW_AUX_MODE4,
- data | MII_BCM5221_SHDOW_AUX_MODE4_IDDQMODE);
+ if (!wol_options) {
+ data = phy_read(phy, MII_BCM5221_TEST);
+ phy_write(phy, MII_BCM5221_TEST,
+ data | MII_BCM5221_TEST_ENABLE_SHADOWS);
+
+ data = phy_read(phy, MII_BCM5221_SHDOW_AUX_MODE4);
+ phy_write(phy, MII_BCM5221_SHDOW_AUX_MODE4,
+ data | MII_BCM5221_SHDOW_AUX_MODE4_IDDQMODE);
+ }
return 0;
}
next prev parent reply other threads:[~2004-11-24 7:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-24 7:09 TEST: Sleep patch #5 Benjamin Herrenschmidt
2004-11-24 7:50 ` Colin Leroy [this message]
2004-11-25 0:51 ` Benjamin Herrenschmidt
2004-11-27 11:31 ` Colin Leroy
2004-11-27 18:17 ` Colin Leroy
2004-11-28 12:09 ` Richard Hult
2004-11-29 23:25 ` David Woodhouse
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=20041124085054.14a89f5f@pirandello \
--to=colin@colino.net \
--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).