Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351333
b: refs/heads/master
c: ab381a9
h: refs/heads/master
i:
  351331: 5f62c6e
v: v3
  • Loading branch information
Barry Grussling authored and David S. Miller committed Jan 10, 2013
1 parent 6f83fe1 commit 0c07de1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 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: 19b2f97e468b74a8aedb4e5918bccaa5702e0742
refs/heads/master: ab381a93ecedee413e13cfec456d1de40aa7eab4
11 changes: 6 additions & 5 deletions trunk/drivers/net/dsa/mv88e6060.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static void mv88e6060_poll_link(struct dsa_switch *ds)

if (!link) {
if (netif_carrier_ok(dev)) {
printk(KERN_INFO "%s: link down\n", dev->name);
netdev_info(dev, "link down\n");
netif_carrier_off(dev);
}
continue;
Expand All @@ -247,10 +247,11 @@ static void mv88e6060_poll_link(struct dsa_switch *ds)
fc = ((port_status & 0xc000) == 0xc000) ? 1 : 0;

if (!netif_carrier_ok(dev)) {
printk(KERN_INFO "%s: link up, %d Mb/s, %s duplex, "
"flow control %sabled\n", dev->name,
speed, duplex ? "full" : "half",
fc ? "en" : "dis");
netdev_info(dev,
"link up, %d Mb/s, %s duplex, flow control %sabled\n",
speed,
duplex ? "full" : "half",
fc ? "en" : "dis");
netif_carrier_on(dev);
}
}
Expand Down
11 changes: 6 additions & 5 deletions trunk/drivers/net/dsa/mv88e6xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds)

if (!link) {
if (netif_carrier_ok(dev)) {
printk(KERN_INFO "%s: link down\n", dev->name);
netdev_info(dev, "link down\n");
netif_carrier_off(dev);
}
continue;
Expand All @@ -380,10 +380,11 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds)
fc = (port_status & 0x8000) ? 1 : 0;

if (!netif_carrier_ok(dev)) {
printk(KERN_INFO "%s: link up, %d Mb/s, %s duplex, "
"flow control %sabled\n", dev->name,
speed, duplex ? "full" : "half",
fc ? "en" : "dis");
netdev_info(dev,
"link up, %d Mb/s, %s duplex, flow control %sabled\n",
speed,
duplex ? "full" : "half",
fc ? "en" : "dis");
netif_carrier_on(dev);
}
}
Expand Down

0 comments on commit 0c07de1

Please sign in to comment.