Skip to content

Commit

Permalink
netxen: re-init station address after h/w init
Browse files Browse the repository at this point in the history
This is a workaround for firmware bug with 2nd port of multiport adapter,
where MAC address is reset. Driver just needs to overwrite it with the
value read from PROM.

Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
dhananjay@netxen.com authored and Jeff Garzik committed Jul 30, 2007
1 parent 49afc59 commit 7eec517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/netxen/netxen_nic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,15 +895,15 @@ static int netxen_nic_open(struct net_device *netdev)

/* Done here again so that even if phantom sw overwrote it,
* we set it */
if (adapter->macaddr_set)
adapter->macaddr_set(adapter, netdev->dev_addr);
if (adapter->init_port
&& adapter->init_port(adapter, adapter->portnum) != 0) {
del_timer_sync(&adapter->watchdog_timer);
printk(KERN_ERR "%s: Failed to initialize port %d\n",
netxen_nic_driver_name, adapter->portnum);
return -EIO;
}
if (adapter->macaddr_set)
adapter->macaddr_set(adapter, netdev->dev_addr);

netxen_nic_set_link_parameters(adapter);

Expand Down

0 comments on commit 7eec517

Please sign in to comment.