public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Skora <thomas@skora.net>
To: Roger Luethi <rl@hellgate.ch>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] via-rhine.c, wol-bugfix, Kernel 2.6.11.5
Date: Thu, 24 Mar 2005 01:37:55 +0100	[thread overview]
Message-ID: <87psxp6fq4.fsf@powers.localnet> (raw)

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

Hello!

The via-rhine driver in the actual kernel release 2.6.11.5 resets
wake-on-lan-settings of the chip. This leads to the fact, that wol is
disabled after the first reboot. I've attached a little patch, that
fixes the problem.

Thomas Skora


[-- Attachment #2: patch-via-wol --]
[-- Type: application/octet-stream, Size: 509 bytes --]

--- linux-2.6.11.5/drivers/net/via-rhine.c.orig	2005-03-24 00:54:16.000000000 +0100
+++ linux-2.6.11.5/drivers/net/via-rhine.c	2005-03-24 00:54:16.000000000 +0100
@@ -542,7 +542,7 @@ static void rhine_power_init(struct net_
 
 	if (rp->quirks & rqWOL) {
 		/* Make sure chip is in power state D0 */
-		iowrite8(ioread8(ioaddr + StickyHW) & 0xFE, ioaddr + StickyHW);
+		iowrite8(ioread8(ioaddr + StickyHW) & 0xFC, ioaddr + StickyHW);
 
 		/* Disable "force PME-enable" */
 		iowrite8(0x80, ioaddr + WOLcgClr);

             reply	other threads:[~2005-03-24  0:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-24  0:37 Thomas Skora [this message]
2005-03-24  7:41 ` [PATCH] via-rhine.c, wol-bugfix, Kernel 2.6.11.5 Roger Luethi
2005-03-24 11:37   ` Thomas Skora

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=87psxp6fq4.fsf@powers.localnet \
    --to=thomas@skora.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rl@hellgate.ch \
    --cc=torvalds@osdl.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