Skip to contentSkip to conversation

Add Wake on LAN support to sis900 (2)

PATCH Chuck Ebbert 1 participant 1 message Feb 24, 2006

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>

Quoted 10 lines · Dave Jones

The patch below applied on Jan 5th causes some systems to no longer boot. See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=179601
for details.

Thanks go to John Reiser for his debugging with git bisect to narrow this one down.
...

Quoted 2 lines
drivers/net/sis900.c +0 -0

...

Quoted 6 lines

drivers/net/sis900.c static int __devinit sis900_probe(struct · line 543

Quoted 6 lines
drivers/net/sis900.c +2 -0
@@ -538,6 +539,11 @@ static int __devinit sis900_probe(struct
            printk("%2.2x:", (u8)net_dev->dev_addr[i]);
    printk("%2.2x.\n", net_dev->dev_addr[i]);
 
+   /* Detect Wake on Lan support */
+   ret = inl(CFGPMC & PMESP);

What is this? It appears to be doing 'inl(0)'.

Quoted 6 lines
Quoted 6 lines
drivers/net/sis900.c +3 -0
+   if (netif_msg_probe(sis_priv) && (ret & PME_D3C) == 0)
+           printk(KERN_INFO "%s: Wake on LAN only available from suspend to RAM.", net_dev->name);
+
    return 0;
 
  err_unmap_rx:
Signature · 2 lines
Chuck
"Equations are the Devil's sentences."  --Stephen Colbert