Skip to contentSkip to conversation

net/nuc900: enable Mac driver clock

PATCH Applied Wan ZongShun 2 participants 2 messages Jul 14, 2010 – Jul 16, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/nuc900: enable Mac driver clock

This patch fixed a bug that Mac driver does not work,because I missed the clk enable.

I have ever tested the driver when I submitted previous Mac driver patch, and it worked good, since my bootloader has enabled the clock in advance.

But when I try to use other bootloader where clock engine was disabled,the Mac driver does not work, so I send this patch to fix this issue.

---
 drivers/net/arm/w90p910_ether.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/arm/w90p910_ether.c +3 -0
index 2e85246..4545d5a 100644
@@ -822,6 +822,9 @@ static int w90p910_ether_open(struct net_device *dev)
 	w90p910_set_global_maccmd(dev);
 	w90p910_enable_rx(dev, 1);
 
+	clk_enable(ether->rmiiclk);
+	clk_enable(ether->clk);
+
 	ether->rx_packets = 0x0;
 	ether->rx_bytes = 0x0;
 
Signature · 1 line
1.6.3.3
maintainer Applied
#1 lore raw

From: Wan ZongShun <[email protected]>
Date: Wed, 14 Jul 2010 17:48:45 +0800

Quoted 9 lines

This patch fixed a bug that Mac driver does not work,because I missed the clk enable.

I have ever tested the driver when I submitted previous Mac driver patch, and it worked good, since my bootloader has enabled the clock in advance.

But when I try to use other bootloader where clock engine was disabled,the Mac driver does not work, so I send this patch to fix this issue.

Applied, thank you.