Skip to content

Commit

Permalink
net/nuc900: enable Mac driver clock
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wan ZongShun authored and David S. Miller committed Jul 16, 2010
1 parent 0a645e8 commit d1853dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/arm/w90p910_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d1853dc

Please sign in to comment.