Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284282
b: refs/heads/master
c: 8ef66bd
h: refs/heads/master
v: v3
  • Loading branch information
Jussi Kivilinna authored and David S. Miller committed Jan 10, 2012
1 parent fbcb424 commit 54c0f12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2193ceabdcde1fca5e017acf1d0023285531748f
refs/heads/master: 8ef66bdc4bda6aac2dae73b84d79dc8c2db33637
8 changes: 8 additions & 0 deletions trunk/drivers/net/usb/asix.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ static int ax88772_link_reset(struct usbnet *dev)

static int ax88772_reset(struct usbnet *dev)
{
struct asix_data *data = (struct asix_data *)&dev->data;
int ret, embd_phy;
u16 rx_ctl;

Expand Down Expand Up @@ -1055,6 +1056,13 @@ static int ax88772_reset(struct usbnet *dev)
goto out;
}

/* Rewrite MAC address */
memcpy(data->mac_addr, dev->net->dev_addr, ETH_ALEN);
ret = asix_write_cmd(dev, AX_CMD_WRITE_NODE_ID, 0, 0, ETH_ALEN,
data->mac_addr);
if (ret < 0)
goto out;

/* Set RX_CTL to default values with 2k buffer, and enable cactus */
ret = asix_write_rx_ctl(dev, AX_DEFAULT_RX_CTL);
if (ret < 0)
Expand Down

0 comments on commit 54c0f12

Please sign in to comment.