public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] via-rhine.c, wol-bugfix, Kernel 2.6.11.5
@ 2005-03-24  0:37 Thomas Skora
  2005-03-24  7:41 ` Roger Luethi
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Skora @ 2005-03-24  0:37 UTC (permalink / raw)
  To: Roger Luethi; +Cc: torvalds, linux-kernel

[-- 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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-24 11:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-24  0:37 [PATCH] via-rhine.c, wol-bugfix, Kernel 2.6.11.5 Thomas Skora
2005-03-24  7:41 ` Roger Luethi
2005-03-24 11:37   ` Thomas Skora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox