Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279053
b: refs/heads/master
c: 681f162
h: refs/heads/master
i:
  279051: 2e06ab2
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Dec 23, 2011
1 parent 4ccb24f commit 0410f4a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 9d4dde5215779f4099730194ad30624fdba3d8b2
refs/heads/master: 681f16232c49de06fb3683a8b128a95dbda9413c
4 changes: 2 additions & 2 deletions trunk/drivers/net/usb/pegasus.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ static inline int reset_mac(pegasus_t *pegasus)
for (i = 0; i < REG_TIMEOUT; i++) {
get_registers(pegasus, EthCtrl1, 1, &data);
if (~data & 0x08) {
if (loopback & 1)
if (loopback)
break;
if (mii_mode && (pegasus->features & HAS_HOME_PNA))
set_register(pegasus, Gpio1, 0x34);
Expand Down Expand Up @@ -561,7 +561,7 @@ static int enable_net_traffic(struct net_device *dev, struct usb_device *usb)
data[1] |= 0x10; /* set 100 Mbps */
if (mii_mode)
data[1] = 0;
data[2] = (loopback & 1) ? 0x09 : 0x01;
data[2] = loopback ? 0x09 : 0x01;

memcpy(pegasus->eth_regs, data, sizeof(data));
ret = set_registers(pegasus, EthCtrl0, 3, data);
Expand Down

0 comments on commit 0410f4a

Please sign in to comment.