master/ethernet.c
changeset 460 719ba8ccc509
parent 446 8fede404c01f
child 552 029546740810
equal deleted inserted replaced
459:f0da52cf6b5b 460:719ba8ccc509
   625     eoe->opened = 1;
   625     eoe->opened = 1;
   626     netif_start_queue(dev);
   626     netif_start_queue(dev);
   627     eoe->tx_queue_active = 1;
   627     eoe->tx_queue_active = 1;
   628     EC_INFO("%s opened.\n", dev->name);
   628     EC_INFO("%s opened.\n", dev->name);
   629     if (!eoe->slave)
   629     if (!eoe->slave)
   630         EC_WARN("device %s is not coupled to any EoE slave!\n", dev->name);
   630         EC_WARN("Device %s is not coupled to any EoE slave!\n", dev->name);
   631     else {
   631     else {
   632         ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_OP);
   632         ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_OP);
   633     }
   633     }
   634     return 0;
   634     return 0;
   635 }
   635 }
   647     eoe->tx_queue_active = 0;
   647     eoe->tx_queue_active = 0;
   648     eoe->opened = 0;
   648     eoe->opened = 0;
   649     ec_eoe_flush(eoe);
   649     ec_eoe_flush(eoe);
   650     EC_INFO("%s stopped.\n", dev->name);
   650     EC_INFO("%s stopped.\n", dev->name);
   651     if (!eoe->slave)
   651     if (!eoe->slave)
   652         EC_WARN("device %s is not coupled to any EoE slave!\n", dev->name);
   652         EC_WARN("Device %s is not coupled to any EoE slave!\n", dev->name);
   653     else {
   653     else {
   654         ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP);
   654         ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP);
   655     }
   655     }
   656     return 0;
   656     return 0;
   657 }
   657 }