Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342060
b: refs/heads/master
c: 481705a
h: refs/heads/master
v: v3
  • Loading branch information
Steve Glendinning authored and David S. Miller committed Dec 10, 2012
1 parent a7857ce commit 0e8013f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4b5511ebc7e1cf94e4f13be19c2cf3e90edc3395
refs/heads/master: 481705a172a1fcd483d4a90963c7593964219273
10 changes: 8 additions & 2 deletions trunk/drivers/net/usb/smsc75xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,8 +1054,6 @@ static int smsc75xx_reset(struct usbnet *dev)

netif_dbg(dev, ifup, dev->net, "PHY reset complete\n");

smsc75xx_init_mac_address(dev);

ret = smsc75xx_set_mac_address(dev);
if (ret < 0) {
netdev_warn(dev->net, "Failed to set mac address\n");
Expand Down Expand Up @@ -1422,6 +1420,14 @@ static int smsc75xx_bind(struct usbnet *dev, struct usb_interface *intf)
dev->net->hw_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
NETIF_F_SG | NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_RXCSUM;

ret = smsc75xx_wait_ready(dev, 0);
if (ret < 0) {
netdev_warn(dev->net, "device not ready in smsc75xx_bind\n");
return ret;
}

smsc75xx_init_mac_address(dev);

/* Init all registers */
ret = smsc75xx_reset(dev);
if (ret < 0) {
Expand Down

0 comments on commit 0e8013f

Please sign in to comment.