devices/e100-2.6.24-ethercat.c
changeset 1504 e02f3344a748
parent 1502 9715a5599590
child 1506 41ca84fb6bb2
equal deleted inserted replaced
1503:b7881d01f98b 1504:e02f3344a748
  1651 		} else if(!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) {
  1651 		} else if(!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) {
  1652 			DPRINTK(LINK, INFO, "link down\n");
  1652 			DPRINTK(LINK, INFO, "link down\n");
  1653 		}
  1653 		}
  1654 
  1654 
  1655 		mii_check_link(&nic->mii);
  1655 		mii_check_link(&nic->mii);
  1656 	}
  1656 
  1657 
       
  1658 	if (!nic->ecdev) {
       
  1659 		/* Software generated interrupt to recover from (rare) Rx
  1657 		/* Software generated interrupt to recover from (rare) Rx
  1660 		 * allocation failure.
  1658 		 * allocation failure.
  1661 		 * Unfortunately have to use a spinlock to not re-enable interrupts
  1659 		 * Unfortunately have to use a spinlock to not re-enable interrupts
  1662 		 * accidentally, due to hardware that shares a register between the
  1660 		 * accidentally, due to hardware that shares a register between the
  1663 		 * interrupt mask bit and the SW Interrupt generation bit */
  1661 		 * interrupt mask bit and the SW Interrupt generation bit */