From: Dan Williams <dcbw@redhat.com>
To: Harry Coin <hcoin@n4comm.com>
Cc: netdev@vger.kernel.org
Subject: Re: 3c59x.c patch to 2.6.18 fixing Wake on Lan (WOL)
Date: Mon, 15 Jan 2007 11:00:35 -0500 [thread overview]
Message-ID: <1168876836.8922.1.camel@localhost.localdomain> (raw)
In-Reply-To: <4.3.2.7.2.20070115091058.063866c8@www.n4comm.com>
On Mon, 2007-01-15 at 09:12 -0600, Harry Coin wrote:
> Hello all.
>
> The 3c59x.c in kernel 2.6.18 (and as I see later ones too) attempts
> to enable PME from the already awake D0 state. The PME config space on Dell
> Optiplexs
> for this chip has a zero in the capabilities for this bit-- no 'wake from d0'.
>
> The pci_enable_wake in 2.6.18 tests the capabilities before enabling PME,
> so the pci_wake call fails, its result is not tested, so no error is reported.
>
> The routine changes the wake request from 0 to D3_hot. This fix
> causes wake on lan (WOL) to work properly on older Dell Optiplex models.
>
> Kindly overlook newbie mistakes. Thank you.
You'll want to include a line like:
Signed-off-by: Harry Coin <your email here>
which signifies that you are legally able to contribute the attached
patch under the GPL license. Do this right before the start of the
patch (where you put your signature in the previous mail).
Dan
> Harry Coin
> Bettendorf, Iowa
>
>
> --- drivers-orig/3c59x.c 2007-01-15 00:03:52.000000000 -0600
> +++ drivers-fixed/3c59x.c 2007-01-15 00:46:37.000000000 -0600
> @@ -3090,8 +3090,8 @@
> /* Set Wake-On-LAN mode and put the board into D3 (power-down) state. */
> static void acpi_set_WOL(struct net_device *dev)
> {
> - struct vortex_private *vp = netdev_priv(dev);
> - void __iomem *ioaddr = vp->ioaddr;
> + struct vortex_private *vp = netdev_priv(dev);
> + void __iomem *ioaddr = vp->ioaddr;
>
> if (vp->enable_wol) {
> /* Power up on: 1==Downloaded Filter, 2==Magic Packets,
> 4==Link Status. */
> @@ -3101,7 +3101,7 @@
> iowrite16(SetRxFilter|RxStation|RxMulticast|RxBroadcast,
> ioaddr + EL3_CMD);
> iowrite16(RxEnable, ioaddr + EL3_CMD);
>
> - pci_enable_wake(VORTEX_PCI(vp), 0, 1);
> + pci_enable_wake(VORTEX_PCI(vp),PCI_D3hot,1);
>
> /* Change the power state to D3; RxEnable doesn't take
> effect. */
> pci_set_power_state(VORTEX_PCI(vp), PCI_D3hot);
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2007-01-15 15:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-15 15:12 3c59x.c patch to 2.6.18 fixing Wake on Lan (WOL) Harry Coin
2007-01-15 16:00 ` Dan Williams [this message]
2007-01-15 17:35 ` Harry Coin
2007-01-15 17:43 ` e100.c " Harry Coin
2007-01-15 18:19 ` Auke Kok
2007-01-15 19:24 ` Harry Coin
2007-01-15 19:42 ` Auke Kok
-- strict thread matches above, loose matches on Subject: below --
2007-01-15 15:09 3c59x.c " Harry Coin
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=1168876836.8922.1.camel@localhost.localdomain \
--to=dcbw@redhat.com \
--cc=hcoin@n4comm.com \
--cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.