netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sky2: Don't try to turn led off in sky2_down()
@ 2009-08-29 13:10 Mike McCormack
  2009-08-29 13:17 ` Mike McCormack
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Mike McCormack @ 2009-08-29 13:10 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev, Rene Mayrhofer, Richard Leitner

There are a few problems with the following line of code in sky2_down()

     sky2_write16(hw, B0_Y2LED, LED_STAT_OFF);

 * It doesn't specify which port's LED to turn off.
 * We don't turn send LED_STAT_ON on in sky2_up()
 * B0_LED is 0x0006 in the vendor driver, but 0x0005 in sky2.
   B0_LED is right next to B0_POWER_CTRL, so this is possibly
   accounts for the device being accidently powered down as
   reported by Rene Mayrhofer.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
---
 drivers/net/sky2.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index dd630cf..aec8ad3 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -1866,9 +1866,6 @@ static int sky2_down(struct net_device *dev)
 	sky2_phy_power_down(hw, port);
 	spin_unlock_bh(&sky2->phy_lock);
 
-	/* turn off LED's */
-	sky2_write16(hw, B0_Y2LED, LED_STAT_OFF);
-
 	sky2_tx_reset(hw, port);
 
 	/* Free any pending frames stuck in HW queue */
-- 
1.5.6.5



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

end of thread, other threads:[~2009-09-04 11:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-29 13:10 [PATCH] sky2: Don't try to turn led off in sky2_down() Mike McCormack
2009-08-29 13:17 ` Mike McCormack
2009-08-29 17:57 ` Stephen Hemminger
2009-08-30  0:37   ` Mike McCormack
2009-08-31  9:48 ` Rene Mayrhofer
2009-08-31  9:58 ` Rene Mayrhofer
2009-09-03 16:16   ` [PATCH] sky2: only enable Vaux if capable of wakeup Stephen Hemminger
2009-09-04  3:10     ` David Miller
2009-09-04 11:55     ` Rene Mayrhofer
2009-08-31 17:31 ` [PATCH] sky2: fix management of driver LED Stephen Hemminger
2009-09-02  0:44   ` David Miller
2009-09-02  4:33     ` Stephen Hemminger
2009-09-02  7:28       ` Rene Mayrhofer
2009-09-02  7:33       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).