devices/8139too-2.6.13-ethercat.c
changeset 474 9850c3fb3865
parent 473 e34754cd973e
child 495 88c597598bbc
equal deleted inserted replaced
473:e34754cd973e 474:9850c3fb3865
  1967 		        dev->name, dirty_tx, tp->cur_tx);
  1967 		        dev->name, dirty_tx, tp->cur_tx);
  1968 		dirty_tx += NUM_TX_DESC;
  1968 		dirty_tx += NUM_TX_DESC;
  1969 	}
  1969 	}
  1970 #endif /* RTL8139_NDEBUG */
  1970 #endif /* RTL8139_NDEBUG */
  1971 
  1971 
  1972 	if (dev != rtl_ec_net_dev) {
  1972 	/* only wake the queue if we did work, and the queue is stopped */
  1973 		/* only wake the queue if we did work, and the queue is stopped */
  1973 	if (tp->dirty_tx != dirty_tx) {
  1974 		if (tp->dirty_tx != dirty_tx) {
  1974 		tp->dirty_tx = dirty_tx;
  1975 			tp->dirty_tx = dirty_tx;
  1975 		mb();
  1976 			mb();
  1976 
       
  1977 		if (dev != rtl_ec_net_dev) {
  1977 			netif_wake_queue (dev);
  1978 			netif_wake_queue (dev);
  1978 		}
  1979 		}
  1979 	}
  1980 	}
  1980 
  1981 
  1981 	/* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
  1982 	/* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/