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