equal
deleted
inserted
replaced
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 eoe->slave->requested_state = EC_SLAVE_STATE_OP; |
632 ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_OP); |
633 eoe->slave->error_flag = 0; |
|
634 } |
633 } |
635 return 0; |
634 return 0; |
636 } |
635 } |
637 |
636 |
638 /*****************************************************************************/ |
637 /*****************************************************************************/ |
650 ec_eoe_flush(eoe); |
649 ec_eoe_flush(eoe); |
651 EC_INFO("%s stopped.\n", dev->name); |
650 EC_INFO("%s stopped.\n", dev->name); |
652 if (!eoe->slave) |
651 if (!eoe->slave) |
653 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); |
654 else { |
653 else { |
655 eoe->slave->requested_state = EC_SLAVE_STATE_INIT; |
654 ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP); |
656 eoe->slave->error_flag = 0; |
|
657 } |
655 } |
658 return 0; |
656 return 0; |
659 } |
657 } |
660 |
658 |
661 /*****************************************************************************/ |
659 /*****************************************************************************/ |