public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* WOL and 3c59x (3c905c-tx)
@ 2001-01-30 22:10 Tobias Ringstrom
  2001-01-30 22:57 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Ringstrom @ 2001-01-30 22:10 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Kernel Mailing List

When shutting down my computer with Linux, I cannot wake it up using
wake-on-LAN, which I can do if I shut it down from WinME or the LILO
prompt using the power button.

I see some "interesting" code in 3c59x.c and acpi_set_WOL, and there is
the following little comment: "AKPM: This kills the 905".

So, what's up?  Does it break all 905s?  And will not changing the state
to D3, as a comment a few lines down says, shut the card down, which seems
to be a bad thing to do in a function called from vortex_probe1...  I know
this code is currently bypassed, but still, what is this?

/Tobias

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: WOL and 3c59x (3c905c-tx)
@ 2001-01-30 22:38 Alex Deucher
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Deucher @ 2001-01-30 22:38 UTC (permalink / raw)
  To: tori, linux-kernel

I have a Linksys WOL ethernet card and it all has some issues with WOL. 
My PC will wake fine if I shut it down in linux (using apm).  It will
also stay off after I shut it down.  If I shutdown from within win98 or
using the power button, it will boot it's self up within 1-2 minutes of
being turned off.  The only way to make it stay off is to boot linux and
shut it down.  I'm using 2.4.0 with apm in kernel.  Same behavior in the
2.4test kernels.

It's not too bothersome since I rarely run win98, but it is strange...

Alex


------------------------------

When shutting down my computer with Linux, I cannot wake it up using 
wake-on-LAN, which I can do if I shut it down from WinME or the LILO 
prompt using the power button. 

I see some "interesting" code in 3c59x.c and acpi_set_WOL, and there is 
the following little comment: "AKPM: This kills the 905". 

So, what's up? Does it break all 905s? And will not changing the state 
to D3, as a comment a few lines down says, shut the card down, which
seems 
to be a bad thing to do in a function called from vortex_probe1... I
know 
this code is currently bypassed, but still, what is this? 

/Tobias
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: WOL and 3c59x (3c905c-tx)
  2001-01-30 22:10 Tobias Ringstrom
@ 2001-01-30 22:57 ` Andrew Morton
  2001-01-31  7:23   ` Tobias Ringstrom
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2001-01-30 22:57 UTC (permalink / raw)
  To: Tobias Ringstrom; +Cc: Kernel Mailing List

Tobias Ringstrom wrote:
> 
> When shutting down my computer with Linux, I cannot wake it up using
> wake-on-LAN, which I can do if I shut it down from WinME or the LILO
> prompt using the power button.
> 
> I see some "interesting" code in 3c59x.c and acpi_set_WOL, and there is
> the following little comment: "AKPM: This kills the 905".
> 
> So, what's up?  Does it break all 905s?  And will not changing the state
> to D3, as a comment a few lines down says, shut the card down, which seems
> to be a bad thing to do in a function called from vortex_probe1...  I know
> this code is currently bypassed, but still, what is this?
> 

The code was broken, so I disabled it.

I
"fixed" WOL in the 2.2.19-pre candidate driver.  It's
at http://www.uow.edu.au/~andrewm/linux/3c59x.c-2.2.19-pre6-1.gz

I'd really appreciate it if you could test the WOL in
that driver.  Then we can port it into 2.4 and try to
fool Linus into thinking it's a bugfix :)

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: WOL and 3c59x (3c905c-tx)
  2001-01-30 22:57 ` Andrew Morton
@ 2001-01-31  7:23   ` Tobias Ringstrom
  2001-01-31  7:59     ` Tobias Ringstrom
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Ringstrom @ 2001-01-31  7:23 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Kernel Mailing List

On Wed, 31 Jan 2001, Andrew Morton wrote:
> The code was broken, so I disabled it.

Because of the loss of state bug with Cyclone, and the "missing" acpi_wake
workaround, right?

> I "fixed" WOL in the 2.2.19-pre candidate driver.  It's
> at http://www.uow.edu.au/~andrewm/linux/3c59x.c-2.2.19-pre6-1.gz
>
> I'd really appreciate it if you could test the WOL in
> that driver.  Then we can port it into 2.4 and try to
> fool Linus into thinking it's a bugfix :)

Of course it is a bug-fix!  I'm very bugged by the current behaviour!
Doesn't that count? :-)

Ugh.  Is the 2.2 driver more advanced than the 2.4 one?  Only temporary, I
hope... :-)

But alas, I cannot easily test this patch, since I need 2.4 for my ATA100
IDE controller, but please send me a patch for 2.4 as soon as you have
one, and I'll help you test it.

Would it be enough to port the acpi_wake function to 2.4?  If so, I can do
that myself.  In fact, I think I'll try that right away.  Who needs
breakfast anyway? :-)

/Tobias, the one smiley per sentence guy :-)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: WOL and 3c59x (3c905c-tx)
  2001-01-31  7:23   ` Tobias Ringstrom
@ 2001-01-31  7:59     ` Tobias Ringstrom
  0 siblings, 0 replies; 5+ messages in thread
From: Tobias Ringstrom @ 2001-01-31  7:59 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Kernel Mailing List

On Wed, 31 Jan 2001, Tobias Ringstrom wrote:
> Would it be enough to port the acpi_wake function to 2.4?  If so, I can do
> that myself.  In fact, I think I'll try that right away.  Who needs
> breakfast anyway? :-)

Ok, I tried it, and it works.  I can now start my computer using WOL
packets after an "init 0" in Linux.

I do not how it behaves in a suspend/wake-up situation, though.  Let me
know when you have a patch for 2.4, and I'll try it.

/Tobias

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-01-31  7:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-30 22:38 WOL and 3c59x (3c905c-tx) Alex Deucher
  -- strict thread matches above, loose matches on Subject: below --
2001-01-30 22:10 Tobias Ringstrom
2001-01-30 22:57 ` Andrew Morton
2001-01-31  7:23   ` Tobias Ringstrom
2001-01-31  7:59     ` Tobias Ringstrom

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