devices/e100-2.6.20-ethercat.c
changeset 1504 e02f3344a748
parent 1502 9715a5599590
child 1506 41ca84fb6bb2
equal deleted inserted replaced
1503:b7881d01f98b 1504:e02f3344a748
  1635 		} else if(!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) {
  1635 		} else if(!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) {
  1636 			DPRINTK(LINK, INFO, "link down\n");
  1636 			DPRINTK(LINK, INFO, "link down\n");
  1637 		}
  1637 		}
  1638 
  1638 
  1639 		mii_check_link(&nic->mii);
  1639 		mii_check_link(&nic->mii);
  1640 	}
  1640 
  1641 
       
  1642 	if (!nic->ecdev) {
       
  1643 		/* Software generated interrupt to recover from (rare) Rx
  1641 		/* Software generated interrupt to recover from (rare) Rx
  1644 		 * allocation failure.
  1642 		 * allocation failure.
  1645 		 * Unfortunately have to use a spinlock to not re-enable interrupts
  1643 		 * Unfortunately have to use a spinlock to not re-enable interrupts
  1646 		 * accidentally, due to hardware that shares a register between the
  1644 		 * accidentally, due to hardware that shares a register between the
  1647 		 * interrupt mask bit and the SW Interrupt generation bit */
  1645 		 * interrupt mask bit and the SW Interrupt generation bit */