Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268687
b: refs/heads/master
c: 8481085
h: refs/heads/master
i:
  268685: 6a4e97f
  268683: 74e9945
  268679: 47167ab
  268671: 3f1ae0d
v: v3
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent a554ec3 commit 2d6fefb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 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: 86d734fd1e8edcab411c80ae4447c97317f8d8b5
refs/heads/master: 8481085a83af02397ed0bf29c2bce517c9287f32
5 changes: 3 additions & 2 deletions trunk/drivers/staging/et131x/et1310_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ void et1310_enable_phy_coma(struct et131x_adapter *adapter)

/* Wait for outstanding Receive packets */

et131x_disable_txrx(adapter->netdev);

/* Gate off JAGCore 3 clock domains */
pmcsr &= ~ET_PMCSR_INIT;
writel(pmcsr, &adapter->regs->global.pm_csr);
Expand Down Expand Up @@ -198,7 +200,6 @@ void et1310_disable_phy_coma(struct et131x_adapter *adapter)
/* Allow Tx to restart */
adapter->flags &= ~fMP_ADAPTER_LOWER_POWER;

/* Need to re-enable Rx. */
et131x_rx_dma_enable(adapter);
et131x_enable_txrx(adapter->netdev);
}

12 changes: 9 additions & 3 deletions trunk/drivers/staging/et131x/et131x_initpci.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,15 @@ void et131x_error_timer_handler(unsigned long data)
struct et131x_adapter *adapter = (struct et131x_adapter *) data;
struct phy_device *phydev = adapter->phydev;

if (!et1310_in_phy_coma(adapter))
if (et1310_in_phy_coma(adapter)) {
/* Bring the device immediately out of coma, to
* prevent it from sleeping indefinitely, this
* mechanism could be improved! */
et1310_disable_phy_coma(adapter);
adapter->boot_coma = 20;
} else {
et1310_update_macstat_host_counters(adapter);
else
dev_err(&adapter->pdev->dev, "No interrupts, in PHY coma\n");
}

if (!phydev->link && adapter->boot_coma < 11)
adapter->boot_coma++;
Expand Down Expand Up @@ -495,6 +500,7 @@ static void et131x_adjust_link(struct net_device *netdev)
} else {
dev_warn(&adapter->pdev->dev,
"Link down - cable problem ?\n");
adapter->boot_coma = 0;

if (phydev && phydev->speed == SPEED_10) {
/* NOTE - Is there a way to query this without
Expand Down

0 comments on commit 2d6fefb

Please sign in to comment.