Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268682
b: refs/heads/master
c: 1ce664d
h: refs/heads/master
v: v3
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent dc33829 commit 4846ddc
Show file tree
Hide file tree
Showing 4 changed files with 4 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: a3bf5fa772963ef0310d982077784ef6839f2fa7
refs/heads/master: 1ce664dc0144eb8e01647f753e319ef53a85423e
3 changes: 0 additions & 3 deletions trunk/drivers/staging/et131x/et1310_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,6 @@ void et131x_xcvr_init(struct et131x_adapter *adapter)
u16 isr;
u16 lcr2;

/* Zero out the adapter structure variable representing BMSR */
adapter->bmsr = 0;

et131x_mii_read(adapter, PHY_INTERRUPT_STATUS, &isr);
et131x_mii_read(adapter, PHY_INTERRUPT_MASK, &imr);

Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/et131x/et131x_adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ struct et131x_adapter {
u16 pdown_speed;
u8 pdown_duplex;

/* Xcvr status at last poll */
u16 bmsr;

/* Tx Memory Variables */
struct tx_ring tx_ring;

Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/staging/et131x/et131x_initpci.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,19 +239,18 @@ static int et131x_pci_init(struct et131x_adapter *adapter,
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))
et1310_update_macstat_host_counters(adapter);
else
dev_err(&adapter->pdev->dev, "No interrupts, in PHY coma\n");

if (!(adapter->bmsr & BMSR_LSTATUS) &&
adapter->boot_coma < 11) {
if (!phydev->link && adapter->boot_coma < 11)
adapter->boot_coma++;
}

if (adapter->boot_coma == 10) {
if (!(adapter->bmsr & BMSR_LSTATUS)) {
if (!phydev->link) {
if (!et1310_in_phy_coma(adapter)) {
/* NOTE - This was originally a 'sync with
* interrupt'. How to do that under Linux?
Expand Down

0 comments on commit 4846ddc

Please sign in to comment.