sky2: Enable/disable WOL per hardware device
authorMike McCormack <mikem@ring3k.org>
Sat, 23 Jan 2010 10:09:26 +0000 (02:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jan 2010 10:09:26 +0000 (02:09 -0800)
commit2ca4231de7f7a5fd7137bac152030ba71f15e8c3
tree681b53327e45e3843b9aaa4e049ff9400f19c781
parent8e1e8a4779cb23c1d9f51e9223795e07ec54d77a
sky2: Enable/disable WOL per hardware device

Y2_HW_WOL_ON/Y2_HW_WOL_OFF should be set and cleared per chip,
not per port.  On dual port cards, Y2_HW_WOL_ON should be
enabled if either sky2 port has WOL enabled.

Found while reviewing code for a WOL regression, though this is
probably not the cause of the regression.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c