Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170669
b: refs/heads/master
c: c634263
h: refs/heads/master
i:
  170667: 684d338
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Oct 13, 2009
1 parent 5afcd6c commit b2602a7
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 27fbc7db52315d6ec37fe3292c1b2ee62180c643
refs/heads/master: c634263df5890daafe0ea470faee3305736bbc3d
10 changes: 10 additions & 0 deletions trunk/drivers/net/sfc/tenxpress.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ static int tenxpress_init(struct efx_nic *efx)
static int tenxpress_phy_init(struct efx_nic *efx)
{
struct tenxpress_phy_data *phy_data;
u16 old_adv, adv;
int rc = 0;

phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL);
Expand Down Expand Up @@ -333,6 +334,15 @@ static int tenxpress_phy_init(struct efx_nic *efx)
if (rc < 0)
goto fail;

/* Set pause advertising */
old_adv = efx_mdio_read(efx, MDIO_MMD_AN, MDIO_AN_ADVERTISE);
adv = ((old_adv & ~(ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM)) |
mii_advertise_flowctrl(efx->wanted_fc));
if (adv != old_adv) {
efx_mdio_write(efx, MDIO_MMD_AN, MDIO_AN_ADVERTISE, adv);
mdio45_nway_restart(&efx->mdio);
}

if (efx->phy_type == PHY_TYPE_SFT9001B) {
rc = device_create_file(&efx->pci_dev->dev,
&dev_attr_phy_short_reach);
Expand Down

0 comments on commit b2602a7

Please sign in to comment.